Top 50 Array Manipulation Interview Questions
The most frequently asked Array Manipulation questions across all roles and companies, ranked by real interview frequency. Updated daily.
Find three array values with the maximum product using the three largest and two smallest values.
Find the longest substring without duplicate characters using a sliding window and last-seen index map.
Deloitte
Quince
AppleReverse each word's characters while preserving the sentence's word order using a linear scan.
American Airlines
Pocket FmBBestPeers InfosystemSort intervals by start time, then greedily merge overlaps into a non-overlapping result array.
Plum
Allscripts
WoodwardCompute cosine similarity for equal-length high-dimensional vectors using dot products and Euclidean norms.
Commonwealth Bank of AustraliaLLogicFFeverRotate an array right by k positions using the three-reversal technique in O(n) time and O(1) extra space.
Hexaware Technologies
Intuitive.AIMove every zero to the array's end in place while preserving the relative order of all non-zero values.
Rotate an n x n matrix 90 degrees clockwise in place using transpose and row reversal.
Capital One
Re:Build Manufacturing
22nd Century TechnologiesSign up to see every question
Create a free account to unlock this list and practice real interview questions.