Data Structures & Algorithms Interview Questions
Study our database of real interview questions and answers verified by hiring managers and candidates.
- 66 questions
- 547 companies
- 21 roles
- Last updated Nov 2026
Hot
Recent
Write functions to serialize and deserialize a list of strings. Has video answer

2 years ago11 answersGiven the root of a binary tree, return the length of the diameter of the tree.


+24 months ago20 answersFind Largest Numbers


7 months ago32 answersGiven an nxn grid of 1s and 0s, return the number of islands in the input. Has video answer


+113 months ago28 answersFind a triplet in an array with a given sum. Has video answer


+46 months ago35 answers- Get your questions answered
Our question database is made possible by user contributions. What were you asked in your most recent interview?
Degrees of Friendship
a year ago34 answersLinked List Cycle


+517 days ago27 answersMaximum Profit


6 months ago37 answersDesign a task scheduler.


20 days ago16 answersFind the median from a data stream.


+19 months ago6 answersGenerate Parentheses Has video answer


+38 months ago21 answersFind the maximum subarray sum.


+153 months ago45 answersWrite a function to return all prime numbers up to a given number n.


+12 years ago19 answersCalculate the average distance between cities.

2 months ago14 answersNumber Finder
3 years ago37 answersFibonacci Numbers


+2a year ago31 answersMerge k sorted linked lists. Has video answer


+104 months ago19 answersBuild a Calculator


+4a year ago10 answersConstruct a binary tree given its preorder and inorder traversals.


+23 months ago16 answersDetermine if two sentences are similar.

2 years ago26 answers
Showing 21-40 of 66
Popular roles
Interviewed recently?
Help improve our question database (and earn karma) by telling us about your experience
+ Share interview experienceTrending companies
