we are given two arrays the task is to find if the two arrays are equal or not. Two arrays are equal if they have same set of elements. Exa...Read More
Given an array of positive integers and an integer. Determine whether or not there exist two elements in A whose sum is exactly equal to tha...Read More
Given an array with repeated elements, the task is to find the maximum distance between two occurrences of an element. Example 1: Input n= ...Read More
Given an array of positive integers. Find the length of the longest sub-sequence such that elements in the subsequence are consecutive integ...Read More
Given an array of strings, return all groups of strings that are anagrams. The groups must be created in order of their appearance in the or...Read More