???? ??? ??? ?????? ?????????
???? ??? ??? ?????? ?????????
difficulty levels. Please note that the categorization of questions may vary,
and some questions could fit into multiple categories.
2. Reverse an array.
3. Rotate an array.
10. Implement an algorithm to find the intersection point of two linked lists.
Linked Lists:
11. Reverse a linked list.
23. Design a stack that supports push, pop, top, and retrieving the minimum element in
constant time.
28. Implement a stack with constant time push, pop, and retrieve minimum element.
30. Design a data structure that supports the following operations: insert, delete,
get_random_element. All operations should be done in constant time.
Hashing:
41. Find the first non-repeating character in a string.
45. Implement a data structure that supports insert, delete, getRandom in O(1) time.
49. Implement an algorithm to find all pairs in an array that sum up to a specific target.
50. Implement a variation of the two sum problem where each element can only be used
once.
56. Implement an efficient algorithm for substring search (e.g., KMP algorithm).
58. Implement a binary search tree and its operations (insert, delete, search).
Dynamic Programming:
61. Calculate the nth Fibonacci number.
Bit Manipulation:
71. Count set bits in an integer.
72. Find the single non-repeating element in an array where every other element repeats
twice.
78. Implement an algorithm to multiply two numbers without using the multiplication operator.
Recursion:
81. Implement factorial using recursion.
88. Calculate the nth term of the Fibonacci sequence using recursion.