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.
Reverse a string using basic iteration and swapping, without built-in reverse helpers.
FIS
Sagitec SolutionsCompute the maximum contiguous subarray sum in O(n) time using Kadane's Algorithm.
Rupeek
PymetricsGenerate the first n Fibonacci numbers using an iterative algorithm.
CCC Intelligent Solutions
Mississippi Staffing
PersistentUse two pointers to verify whether an AstraZeneca study label is a case-insensitive alphanumeric palindrome.
Santander
AstraZeneca
GoogleScan an array once to return the second-largest distinct value, handling duplicates and invalid cases efficiently.
TEKsystems
Labcorp
HashedInFind the middle node of a singly linked list in one pass using slow and fast pointers.
Cloudera
Quest Global
PubmaticSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Generate all Fibonacci values up to a limit using iterative and recursive techniques, then compare their implementation trade-offs.
Tennessee Staffing
Washington Staffing
Encore Capital GroupReverse each word's characters while preserving the sentence's word order using a linear scan.
American Airlines
Pocket FmBBestPeers Infosystem