Top 50
Topic roadmap
Updated weekly · Last refresh Sep 12

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
210companies 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. 27 questions · ~675 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 StaffingPersistent
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
Middle of Linked ListEasy
Practice
Recently asked

Find the middle node of a singly linked list in one pass using slow and fast pointers.

Basic AlgorithmsLinked ListsTwo PointersClouderaQuest GlobalPubmatic
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
Recursion7 questions · ~175 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 challenge5 questions · ~125 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 topics6 questions · ~150 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.