Data Structures & Algorithms Interview Questions
Study our database of real interview questions and answers verified by hiring managers and candidates.
- 501 questions
- 547 companies
- 21 roles
- Last updated Nov 2026
Hot
Recent
Maximum Profit


6 months ago37 answersDesign a task scheduler.


19 days ago16 answersFind the median from a data stream.


+19 months ago6 answersGiven an array of points and a point P, find the k closest points to P.


2 years ago7 answersGenerate Parentheses Has video answer


+38 months ago21 answers- Get your questions answered
Our question database is made possible by user contributions. What were you asked in your most recent interview?
Find the maximum subarray sum.


+153 months ago45 answersPrint the top view of nodes in a binary tree.
a year ago6 answersWrite a function to return all prime numbers up to a given number n.


+12 years ago19 answersLexicographic Grid Travel.
a year ago2 answersFind the maximum product of any two integers in an array.

3 years ago11 answersCalculate the average distance between cities.

2 months ago14 answersGiven a binary tree, check if each node is the average of all descendants
a year ago2 answersCycle Detection in Package Manager.
a year ago2 answersFind the median of two sorted arrays. Has video answer


+69 months ago1 answerNumber Finder
3 years ago37 answersFibonacci Numbers


+2a year ago31 answersExplain the differences between stack and heap memory allocation.

3 years ago2 answersGiven a head node of a linked list, delete k-th node from the end of the list.
2 years ago5 answers
Showing 61-80 of 501
Popular roles
Interviewed recently?
Help improve our question database (and earn karma) by telling us about your experience
+ Share interview experienceTrending companies

