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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started