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

Meta (Facebook)

Find the least number of parentheses required to balance a specified string.

Medium

algorithms

Prime Numbers

Medium

algorithms

Determine how many times the pattern occurs within the string.

Medium

algorithms

Identify the Duplicates

Medium

algorithms

Meta (Facebook), Google

Desired Total

Medium

algorithms

Meta (Facebook)

Assess a vessel's ability to transport packages within D days.

Medium

algorithms

Most Frequently Used Words

Medium

algorithms

Microsoft

Identify the longest substring that does not contain any repeating characters.

Medium

algorithms

Levels of Friendship

Medium

algorithms

Google

Determine the total ways to ascend a staircase.

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.