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

Peloton

How would you create and execute a password checker based on specific password requirements?

Medium

algorithms

Robinhood

Go through a list of trades and generate a list of buy/sell pairs along with the total profit from the trades.

Medium

algorithms

LinkedIn

Given an array of integers, identify a triplet of integers that can create a triangle.

Medium

algorithms

Meta (Facebook)

I encountered a coding problem titled "finding Alibada." The concept involves a set of rooms, with Alibada located in one of them. He moves to an adjacent room each day. You are provided with a list of rooms, and your task is to programmatically ascertain whether you can locate Alibada using this list.

Medium

algorithms

Google

Consider a very large n-ary tree, where the root node possesses information that it needs to share with all its children down to the leaves. The constraint is that the root can only communicate this information to one child at a time, which we will refer to as one iteration. In the subsequent iteration, the child node that received the information can then pass it on to just one of its own children. Simultaneously, the root can share the information with one of its other children. This process continues in the same manner. Our goal is to determine the minimum number of iterations required to disseminate the information to all nodes within the tree.

Medium

algorithms

Apple, Meta (Facebook)

Divide an array into two sub-arrays that have equal sums.

Medium

algorithms

Apple

Identify the palindromes.

Medium

algorithms

Apple

Shorten a collection of strings.

Medium

algorithms

Google

Verify the proper arrangement of parentheses in a string.

Medium

algorithms

Meta (Facebook), LinkedIn

Combine two sorted arrays.

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.