Dhanaraj S645. Set MismatchYou have a set of integers s, which originally contains all the numbers from 1 to n. Unfortunately, due to some error, one of the numbers…Feb 17, 2022Feb 17, 2022
Dhanaraj SMerge K sorted listYou are given an array of k linked-lists lists, each linked-list is sorted in ascending order.Oct 3, 2021Oct 3, 2021
Dhanaraj SKth Smallest Element in a Sorted MatrixGiven an n x n matrix where each of the rows and columns are sorted in ascending order, return the kth smallest element in the matrix.Oct 3, 2021Oct 3, 2021
Dhanaraj SFirst missing positiveGiven an unsorted integer array nums, return the smallest missing positive integer.Sep 28, 2021Sep 28, 2021
Dhanaraj SFind the Duplicate NumberGiven an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.Sep 18, 2021Sep 18, 2021
Dhanaraj SFind All Numbers Disappeared in an ArrayGiven an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range [1, n] that do not…Sep 11, 2021Sep 11, 2021
Dhanaraj SRange Sum Query — ImmutableGiven an integer array nums, handle multiple queries of the following type:Sep 6, 2021Sep 6, 2021
Dhanaraj SKth Largest Element in an ArrayGiven an integer array nums and an integer k, return the kth largest element in the array.Sep 3, 2021Sep 3, 2021
Dhanaraj SCheck if a number is majority element in the sorted arrayGiven an array in non decreasing order. Given a target, check if the occurence of target is atleast n/2 times. Return true in that case…Sep 1, 2021Sep 1, 2021
Dhanaraj STwo Sum II — Input array is sortedGiven an array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific…Aug 29, 2021Aug 29, 2021
Dhanaraj SMaximize Sum Of Array After K NegationsGiven an integer array nums and an integer k, modify the array in the following way:Aug 27, 2021Aug 27, 2021