Prepin
Log in

Algorithm Interview Questions

Algorithm problems from coding interviews. Practice explaining your approach, its complexity and the edge cases before you write code.

All interview questions

Showing 10 of 112 questions

Uber

Transform a matrix into a quad tree.

Medium

algorithms

Decode Message

Medium

algorithms

Amazon

Identify the highest product of two integers within an array.

Medium

algorithms

Least Recently Used (LRU) Cache

Medium

algorithms

Meta (Facebook)

Create a data structure that allows for insertion, deletion, searching, and retrieval operations to be performed in constant time.

Medium

algorithms

Meta (Facebook)

Determine the length of the most concise chain (word ladder).

Medium

algorithms

Given an nxn grid consisting of 1s and 0s, return the total count of islands present in the input.

Medium

algorithms

Meta (Facebook)

For a Directed Acyclic Graph (DAG), create a function that calculates and returns the length of the longest path.

Medium

algorithms

Apple, Dropbox

You possess the stock price information for the upcoming n days. Since you are allowed to buy or sell a maximum of one share each day, your goal is to maximize your profit at the end of n days.

Medium

algorithms

Dropbox

Smallest Substring Containing All Characters

Medium

algorithms

Companies

Topics

Product design
Behavioral
Product strategy
Algorithms
SQL

Product

For CandidatesFor RecruitersCompaniesBrowse JobsInterview QuestionsDeep ProfileSkill AssessmentOpportunity Matching
Prepin.ai

© 2026 Prepin LLC · Philadelphia, PA · All rights reserved.