Question bank
4,310 interview questions, answered.
Reference answers, what the interviewer is really testing, how it is graded, and the follow-ups that come next.
Easy 190Medium 2,498Hard 982
Filters · onDifficulty, topic, company
205 questions
- 169Write a function to return all prime numbers up to a given number n.MediumCoding·
Adobe, Apple - 170Implement a queue using stacks.MediumCoding·
Goldman Sachs - 171Given a head node of a linked list, delete k-th node from the end of the list.MediumCoding·
Meta - 172Given the row and column, return the value at that position in Pascal's triangle.MediumCoding·
Goldman Sachs - 173Reverse a SentenceEasyCoding·
Adobe, Apple - 174Reverse a linked list.EasyCoding·
Adobe, Apple - 175Set Matrix ZeroesMediumCoding·
Apple - 176Infection spread simulation.MediumCoding·
OpenAI - 177Find the smallest missing element from a sorted array.EasyCodingTechnical·
Meta - 178Sort a doubly linked list using merge sort.MediumCodingTechnical·
Meta - 179Given an array of integers, print all subarrays that sum to zero.MediumCodingData·
Meta - 180Find the sum of all elements in a binary tree that fall within the range [low, high], where 'low' and 'high' are integers.MediumCoding·
Meta - 181Given a list of trades, iterate to return buy/sell pairs and overall profit.MediumCodingTechnical·
Robinhood - 182Valid ParenthesesEasyCoding·
Apple, Booking.com - 183Is this a valid palindrome?EasyCoding·
Adobe, Apple - 184Which sorting algorithms use divide and conquer?MediumCodingTechnical·
Meta - 185Write a program to count the frequency of each character in a given text file.EasyCodingTechnical·
Andela - 186Given two strings, return true if you could change 2 letters in the s string and return the goal string. If this isn't possible, return false.MediumCoding
- 187Copy a Spiral MatrixMediumCoding
- 188Find the Largest Smaller BST KeyHardCoding
- 189What are the issues that using hashmap on a multithreaded environment may cause? How would you deal with them?MediumCodingTechnical
- 190Explain how hash maps work.MediumCodingTechnical
- 191List the Differences Between Two StringsMediumCoding
- 192Shortest Cell PathMediumCoding