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

Dropbox

Identify duplicate files within a file system.

Medium

algorithms

Apple

Describe the map function.

Medium

algorithms

Apple

Identify a loop or cycle within a linked list.

Medium

algorithms

Meta (Facebook)

Assess whether two words are arranged in lexicographic order.

Medium

algorithms

Meta (Facebook)

Shift all zeros in an array to the end.

Medium

algorithms

Apple

Create an iterator.

Medium

algorithms

Amazon

Create a program that outputs the longest consecutive positive sequence found within a specified array.

Medium

algorithms

Apple, Google

Organize a binary array in linear time.

Medium

algorithms

Microsoft

Leetcode problem 347: Top K Frequent Elements, can be found at https://leetcode.com/problems/top-k-frequent-elements/. Follow-up question: What is the approach for dealing with a scenario that includes millions of elements?

Medium

algorithms

Meta (Facebook)

Quickly identify the next largest element in an array.

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.