Question: 1 Determine whether two string are anagram: Any word that reproduces the letters in another order is an anagram. and are anagrams if by rearranging

1 Determine whether two string are anagram: Any word that reproduces the letters in another order is an anagram. and are anagrams if by rearranging letters of we will get Examples of anagram silent listen Tom Marvolo Riddle am Lord Voldemort William Shakespeare am a weakish speller incest insect Note: Use only 1 Hash table to solve this problem

2 Sort an array based on order defined by another array in Given two integer arrays, reorder elements of the first array by the order of elements defined by the second array. The elements that are not present in the second array but present in the first array should be appended at the end sorted. The second array can contain some extra elements which are not part of the first array. Input:

3 Sets: a. Find Union and Intersection of 2 sets in b. Find all unique pairs of elements in an array that sum to . For ex. If array = and then answer is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!