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
Detect cycle in graph
+18 months ago3 answersFind the closest palindrome of a given number.
a year ago2 answersGiven the root of a binary tree of integers, return the maximum path sum. Has video answer


+25 months ago2 answersRotate a 2D matrix.

a year ago1 answer- Get your questions answered
Our question database is made possible by user contributions. What were you asked in your most recent interview?
Implement encode and decode for a list of strings.

5 months ago1 answerPartition an array into two sub-arrays with equal sum.


+23 months ago11 answersDetermine if a given binary tree is a binary search tree (BST).


+32 years ago13 answersMerge two sorted lists


+32 months ago6 answersImplement a circular buffer.
2 years ago4 answersRotating the Box

2 years agoFind the Smallest Missing Integer
3 years ago23 answersSort a doubly linked list using merge sort. Has video answer

10 months ago9 answersBalanced Tree


a year ago18 answersSort a nearly sorted (or K sorted) array.
a year ago1 answerCopy a Spiral Matrix
3 years ago22 answers
Showing 101-120 of 501
Popular roles
Interviewed recently?
Help improve our question database (and earn karma) by telling us about your experience
+ Share interview experienceTrending companies


