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…2 min read·Dec 9, 2021----
Chaitra RaiisUnique?Implement an algorithm to determine if a string has all unique characters2 min read·Dec 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…2 min read·Nov 30, 2021----
Chaitra RaiLongest Consecutive SequenceGiven an unsorted array, one has to return the length of the array subset with consecutive elements(Full Question)2 min read·Nov 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…2 min read·Nov 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…2 min read·Oct 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…2 min read·Oct 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…2 min read·Oct 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…3 min read·Oct 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…2 min read·Oct 10, 2021----