Find Position of An Element in A Sorted Array of Infinite Numbers - Geeksforgeeks
Find Position of An Element in A Sorted Array of Infinite Numbers - Geeksforgeeks
2) Kadane's algorithm
13) Find the index of 1 in an array with 0 and 1 infinitely (Find position of an element in a
sorted array of infinite numbers - GeeksforGeeks)
Stacks
2) Balanced parenthesis
Linked list
4) Merge two sorted linked list (Merge two sorted linked lists - GeeksforGeeks)
Strings
4) Reverse a string
Bit manipulation
Tree
General
Here are some of the popular array-based coding interview questions for your practice:
1. How do you find the missing number in a given integer array of 1 to 100?
2. How do you find the duplicate number on a given integer array?
3. How do you find the largest and smallest number in an unsorted integer array?
4. How do you find all pairs of an integer array whose sum is equal to a given
number?
5. How do you find duplicate numbers in an array if it contains multiple duplicates?
6. How are duplicates removed from a given array in Java?
7. How is an integer array sorted in place using the quicksort algorithm?
8. How do you remove duplicates from an array in place?
9. How do you reverse an array in place in Java?
10. How are duplicates removed from an array without using any library?
11. How do you find the middle element of a singly linked list in one pass?
12. How do you check if a given linked list contains a cycle? How do you find the
starting node of the cycle?
13. How do you reverse a linked list?
14. How do you reverse a singly linked list without recursion?
15. How are duplicate nodes removed in an unsorted linked list?
16. How do you find the length of a singly linked list?
17. How do you find the third node from the end in a singly linked list?
18. How do you find the sum of two linked lists using Stack?