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
Implement an LRU cache.


3 days agoRe-root a binary tree.
3 years agoImplement the memcpy() function in C.
2 years ago4 answersCalculate the number of times a pattern appears in a string.
2 years ago3 answers- Get your questions answered
Our question database is made possible by user contributions. What were you asked in your most recent interview?
Return all unique substrings of a given string.


8 months agoFind the lowest common ancestor (LCA) of two nodes in a binary tree.


+37 months ago11 answersSet Matrix Zeroes

a year ago3 answersGiven an array of integers, print all subarrays that sum to zero.
5 years ago2 answersFind the longest palindromic subsequence using dynamic programming.


+39 months ago14 answersGraph Coloring Problem
2 years agoImplement a function to justify a list of words within a given width.

2 years ago1 answer
Showing 181-200 of 501
Popular roles
Interviewed recently?
Help improve our question database (and earn karma) by telling us about your experience
+ Share interview experienceTrending companies





