Top 50
Topic roadmap
Updated weekly · Last refresh Nov 1

Top 50 Basic Algorithms Interview Questions

The most frequently asked Basic Algorithms questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~21htotal time
246companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
Basic AlgorithmsStart here. 25 questions · ~625 min
Reverse String Without Built-insEasy
Practice
Recently asked

Reverse a string using basic iteration and swapping, without built-in reverse helpers.

Basic Algorithmsfunction implementationStringsCCypress GFISSagitec Solutions
Maximum Subarray Using KadaneEasy
Practice
Recently asked

Compute the maximum contiguous subarray sum in O(n) time using Kadane's Algorithm.

Basic AlgorithmsDynamic ProgrammingArraysJJP Morgan ChaseRupeekPymetrics
Generate Fibonacci SeriesEasy
Practice
Recently asked

Generate the first n Fibonacci numbers using an iterative algorithm.

Basic AlgorithmsloopsCCC Intelligent SolutionsMississippi StaffingFort Worth Staffing
Palindrome With CleanupEasy
Practice
Recently asked

Use two pointers to verify whether an AstraZeneca study label is a case-insensitive alphanumeric palindrome.

Basic AlgorithmsStringsTwo PointersSantanderAstraZenecaGoogle
Find Second Largest ElementEasy
Practice
Recently asked

Scan an array once to return the second-largest distinct value, handling duplicates and invalid cases efficiently.

Basic Algorithmsfunction implementationArraysTEKsystemsLabcorpHashedIn
Two Sum in Sorted ArrayEasy
Practice
Recently asked

Use two pointers on a sorted array to find two values whose sum equals a target in O(n) time.

Basic AlgorithmsArraysTwo PointersCCypress GSecurity On-DemandCollabera
More Basic Algorithms 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
2
Recursion6 questions · ~150 min
Fibonacci Iterative vs RecursiveEasy
Practice
Recently asked

Generate all Fibonacci values up to a limit using iterative and recursive techniques, then compare their implementation trade-offs.

RecursionBasic AlgorithmsloopsTennessee StaffingWashington StaffingEncore Capital Group
More Recursion questions with a free account
3
coding challenge6 questions · ~150 min
Reverse Words in SentenceMedium
Practice
Recently asked

Reverse each word's characters while preserving the sentence's word order using a linear scan.

coding challengeBasic AlgorithmsStringsAmerican AirlinesPocket FmBBestPeers Infosystem
More coding challenge questions with a free account
4
Coding5 questions · ~125 min
More Coding questions with a free account
5
More topics8 questions · ~200 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.