40 Interview Questions
40 Interview Questions
edu/courses/6-006-introduction-to-algorithms-fall-2011/pages/lecture-notes/
Here are 40 most asked DSA questions to ace your next interview -
➤ 𝗟𝗶𝗻𝗸𝗲𝗱 𝗟𝗶𝘀𝘁𝘀:
12. Find the middle of a linked list. (kth element from end of the linked list)
17. Implement a stack that supports push, pop, top, and retrieving the minimum element.
22. Find the lowest common ancestor of two nodes in a binary tree.
➤ 𝗚𝗿𝗮𝗽𝗵𝘀:
30. Find the shortest path between two nodes in an unweighted graph.
40. Given an array of integers, count the number of inversions it has. An inversion occurs when two
elements in the array are out of order.
https://docs.google.com/spreadsheets/d/13752-34GdqVl4Ci_YEcp9MMtf6_m3Xrw_giFoy3m1DA/
edit?gid=0#gid=0=