Check Permutation

Given two strings, write a method to decide if one is a permutation of the other. Example : abcd and dabc is permutation of each other(Similar Question)

• Strings of…

isUnique?

Implement an algorithm to determine if a string has all unique characters

• We can iterate through the array and consider one character at a time and…

Longest Consecutive Sequence

Given an unsorted array, one has to return the length of the array subset with consecutive elements(Full Question)

• if the element+1 number does exist we keep increasing a…

Maximum Product Subarray

Given an array that contains n integers that could be positive, negative, or zero, return the product returned by the subarray with the maximum product (Full Question)

Chocolate Distribution Problem

Given an array of positive integers of size n, where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. …

Pairs in array with given sum

Given an array of size n, return the array with the index of the pair that would give the sum k. …

Minimize difference between array values

You 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. Return the minimum score of nums after changing the values at each index. (Question 1, Question 2)

Minimum number of jumps to reach the end of the array

Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is to reach the last index in the minimum number of jumps. (Full Question)

Move Negative Elements to the end

Given an array of size n with negative and positive elements, the task is to place all negative elements to the end keeping all positive elements in the beginning(Full Question)

• We come across four scenarios while we…

Chaitra Rai

Intimidated developer trying to find her way into technology dominant world