Data Structures & Algorithms Interview Questions
Review this list of 297 Data Structures & Algorithms interview questions and answers verified by hiring managers and candidates.Hot
New
- How would you write a KNN search using base python?
AmazonAsked 2 years ago - Design LFU cache.
MicrosoftAsked 2 months ago1 answer - Implement file search
AmazonAsked 3 years ago1 answer - Edit distanceHas video answer


Amazon + 4 moreAsked 5 months ago45 answers - Reverse a linked list.


ElevenLabs + 11 moreAsked 2 months ago46 answers - Get your questions answered
Our question database is made possible by user contributions. What were you asked in your most recent interview?
- Given a string s, return true if the s can be a palindrome after deleting at most one character from it.
MetaAsked 4 months ago7 answers - Infection spread simulation.
OpenAI + 2 moreAsked 15 days ago1 answer - Is this a valid palindrome?


Datadog + 8 moreAsked 4 months ago50 answers - Implement LRU Cache.


Anthropic + 35 moreAsked 22 days ago33 answers - Find the container with the maximum volume of water.Has video answer


Apple + 2 moreAsked 2 years ago2 answers - Find the longest substring without repeating characters.


ElevenLabs + 9 moreAsked 2 months ago38 answers - Find the minimum characters to insert to make a string a palindrome.
UberAsked 7 months ago2 answers - Maximum Number of Visible Points
AppleAsked 9 months ago1 answer - Given an integer array nums and an integer k, return true if nums has a subarray of at least two elements whose sum is a multiple of k.Has video answer


Apple + 9 moreAsked 2 years ago18 answers - Find the first missing positive number in an array.
AmazonAsked 2 years ago13 answers - Find the sum of all elements in a binary tree that fall within the range [low, high], where 'low' and 'high' are integers.
MetaAsked 2 years ago11 answers - Given n houses in a line with money in each, find the maximum amount a robber can steal, without stealing from two adjacent houses.


Apple + 4 moreAsked 2 years ago4 answers - Difference of Arrays62 answers
- Find the longest common prefix given two integer arrays.
AmazonAsked 8 months ago2 answers
Showing 1-20 of 297
Popular roles
Interviewed recently?
Help improve our question database (and earn karma) by telling us about your experience
+ Share interview experienceTrending companies

