#sanketsingh
Read more stories on Hashnode
Articles with this tag
Problem statement Find two numbers in a sorted non-decreasing order 1-indexed array that adds up to the target. Return their indices (1-indexed) as...
Problem statement Given an array of integer nums and an integer k, return the number of unique k-diff pairs in the array. A k-diff pair is an integer...
Problem statement Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap...
Problem statement Given a string of 'a's and 'b's of length n, find the maximum length of a substring with consecutive equal letters. You can change...
Problem statement Sort the array containing red, white, and blue colors (0, 1, 2) in-place without using the library's sort function. Use the Dutch...
Problem statement Merge two sorted arrays nums1 and nums2 into nums1 of length m + n. The result should be a single sorted array in non-decreasing...