Top 50 Basic Algorithms Interview Questions
The most frequently asked Basic Algorithms questions across all roles and companies, ranked by real interview frequency. Updated weekly.
Determine whether an integer is prime using trial division up to its square root.
PNC Financial Services GroupTraverse a string once and compress consecutive repeated characters into character-count groups.
AutodeskReturn all duplicate values in an integer array using a hash set or frequency counting in linear time.
AccentureTests your ability to write data processing code and compute multiple aggregates correctly.
The Boston Consulting GroupUse a sliding window with monotonic queues to find the longest contiguous utilization range within a max-min limit.
NVIDIASign up to see every question
Create a free account to unlock this list and practice real interview questions.
Tests communication and influence through a concrete example of translating technical depth into business-aligned action.
Stackadapt
Draper LabsOpen any question for its full solution and discussion.
Browse all questions →