Top 50 function implementation Interview Questions
The most frequently asked function implementation questions across all roles and companies, ranked by real interview frequency. Updated daily.
Compute cosine similarity for equal-length high-dimensional vectors using dot products and Euclidean norms.
Commonwealth Bank of AustraliaLLogicFFeverDetermine if an integer is a power of two using bit manipulation in constant time.
Cubic
Cyient
Sparta SystemsRotate an array to the right by k positions in place using reversal and modular arithmetic.
North Carolina
Scribd
AmazonUse a hash set to determine whether a target item appears at least twice in an Uber Eats item list.
Uber
Elite Technology
AshbyReverse an inclusive linked-list segment in place using pointer manipulation with O(n) time and O(1) extra space.
Andela ProductsJJohnson
Arista NetworksGenerate all n-digit integers divisible by 5 using arithmetic range stepping.
C3 AI
C3.aiReverse a string using basic iteration and swapping, without built-in reverse helpers.
FIS
Sagitec SolutionsScan an array once to return the second-largest distinct value, handling duplicates and invalid cases efficiently.
TEKsystems
Labcorp
HashedInSign up to see every question
Create a free account to unlock this list and practice real interview questions.