Author name: Premkumar

Remove Element

Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The order of the elements may be changed. Then return the number of elements in nums which are not equal to val. Consider the number of elements in nums which are not equal to val be k, to get accepted, you need to do the following things: Custom Judge: The judge will test your …

Remove Element Read More »

Merge Sorted Array

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively. Merge nums1 and nums2 into a single array sorted in non-decreasing order. The final sorted array should not be returned by the function, but instead be stored inside the array nums1. To accommodate this, nums1 has a length of m + n, where the first m elements denote the …

Merge Sorted Array Read More »

Testcase maintenance in code

Normally, we keep test cases separately using a tool called test management. Then, we combine the automated test cases and update the results in the test management tool. It can be a lot of work to create and update test cases when there are changes to the code. However, if we keep the test cases …

Testcase maintenance in code Read More »

Performance Testing Framework

Introduction This post will cover the creation of a performance testing framework using k6, as well as the steps involved in building and utilizing the framework. setup By completing these steps, you will have k6 properly set up and ready to use. Framework Architecture Sample Perf Script Sample Repo https://github.com/premsvmm/PerformanceTestingK6

Valid String

A string to be valid if all characters of the string appear the same number of times Input : aabbcc Output: valid Code

Possible way of Asserting object in REST API’s

Asserting Actual and Expected values in an object using softAssert Assert using stream and reduce code duplicate used gson library for deserialization. Convert the response object to Map and do the assertion

Implement Stack

1. Implement the stack 2. Get Min value in stack with o(1) 3. Improve space complexity as well Code

Rest API Automation Framework

Introduction: This post explain about the way how to design a Rest API Automation framework from scratch. As a pre-requisite you should familiar with following listed items. API To Automate API Request: API Response: The Above request can be imported in POSTMAN. Copy the curl and import the data and fire the request. For the …

Rest API Automation Framework Read More »

Scroll to Top