Top 50
Topic
~10h total · Updated weekly · Last refresh Jul 24

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.

Check Whether a Number Is Prime
Easy

Determine whether an integer is prime using trial division up to its square root.

Basic Algorithmsprime numberProgramming
Recently asked
PNC Financial Services Group
Compress Consecutive Characters
Easy

Traverse a string once and compress consecutive repeated characters into character-count groups.

Basic AlgorithmsArraysStrings
Recently asked
Autodesk
Find Duplicates in Integer Array
Easy

Return all duplicate values in an integer array using a hash set or frequency counting in linear time.

Basic AlgorithmsArraysStrings
Recently asked
Accenture
Flight Logs Aggregation
Medium

Tests your ability to write data processing code and compute multiple aggregates correctly.

Basic AlgorithmsData Manipulationpython
Recently asked
The Boston Consulting Group
Longest Stable GPU Utilization Window
Easy

Use a sliding window with monotonic queues to find the longest contiguous utilization range within a max-min limit.

reasoningBasic Algorithmsleetcode
Recently asked
NVIDIA
More Coding questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
Explaining a Core Technical Concept
Medium

Tests communication and influence through a concrete example of translating technical depth into business-aligned action.

time complexityBasic Algorithms
Recently asked
StackadaptDraper Labs
More Behavioral & Leadership questions with a free account

Open any question for its full solution and discussion.

Browse all questions →