Chaitra RaiCheck PermutationGiven two strings, write a method to decide if one is a permutation of the other. Example : abcd and dabc is permutation of each…Dec 9, 2021Dec 9, 2021
Chaitra RaiisUnique?Implement an algorithm to determine if a string has all unique charactersDec 8, 2021Dec 8, 2021
Chaitra RaiMajority ElementGiven an array return an element that repeats more than n/2 times / n/3 times (Full Question more than n/2 times, Full Question more than…Nov 30, 2021Nov 30, 2021
Chaitra RaiLongest Consecutive SequenceGiven an unsorted array, one has to return the length of the array subset with consecutive elements(Full Question)Nov 16, 2021Nov 16, 2021
Chaitra RaiMaximum Product SubarrayGiven an array that contains n integers that could be positive, negative, or zero, return the product returned by the subarray with the…Nov 8, 2021Nov 8, 2021
Chaitra RaiChocolate Distribution ProblemGiven an array of positive integers of size n, where each value represents the number of chocolates in a packet. Each packet can have a…Oct 24, 2021Oct 24, 2021
Chaitra RaiPairs in array with given sumGiven an array of size n, return the array with the index of the pair that would give the sum k. Assume that there is exactly one solution…Oct 19, 2021Oct 19, 2021
Chaitra RaiMinimize difference between array valuesYou are given an integer array nums and an integer k. The score of nums is the difference between the maximum and minimum elements in nums…Oct 18, 2021Oct 18, 2021
Chaitra RaiMinimum number of jumps to reach the end of the arrayGiven an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array…Oct 18, 2021Oct 18, 2021
Chaitra RaiMove Negative Elements to the endGiven an array of size n with negative and positive elements, the task is to place all negative elements to the end keeping all positive…Oct 10, 2021Oct 10, 2021