Tip 1 : Practice Atleast 250 Questions
Tip 2 : Ex- Do atleast 2 projects
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume



The same letter cell should not be used more than once.
For a given word “design” and the given 2D board
[[q’, ‘v’, ‘m’, ‘h’],
[‘d’, ‘e’, ‘s’, ‘i’],
[‘d’, ‘g’, ‘f’, ‘g’],
[‘e’, ‘c’, ‘p’, ‘n’]]
The word design can be formed by sequentially adjacent cells as shown by the highlighted color in the 2nd row and last column.




The leaderboard scores are in descending order.
The game scores are given in ascending order.




All the different rows are merged into a single row.



Swap 1: We swap adjacent elements 90 and 21. So, ARR after one swap is [70, 60, 21, 90, 11].
Swap 2: We swap adjacent elements 60 and 21. So, ARR after one swap is [70, 21, 60, 90, 11].
Swap 3: We swap adjacent elements 70 and 21. So, ARR after one swap is [21, 70, 60, 90, 11].
The lexicographically smallest ARR after K = 3 swaps is [21, 70, 60, 90, 11].



1) Constructor: It initializes the data members as required.
2) add(value): It inserts an element into the HashSet. The function takes one argument which is the value that needs to be added and returns nothing
3) contains(value): It checks whether the element exists in the HashSet or not. The function takes one argument which is the value that needs to be searched for in the HashSet. The function returns true if the element exists, otherwise returns false.
4) remove(value): It removes an element from the HashSet. The function takes one argument which is the value that needs to be removed from the HashSet and returns the element which is being removed. If the element does not exist in the HashSet or if HashSet is empty, return -1.
Query-1 (Denoted by an integer 1)- Inserts an element in the HashSet
Query-2 (Denoted by an integer 2)- Returns a boolean value denoting whether the element is present in the HashSet or not.
Query-3 (Denoted by an integer 3)- Removes the element from the HashSet.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?