BY CATEGORY
Coding & algorithms Interview Questions
Prepare for Coding & algorithms questions: 1657 interview questions from real interviews. Read, practise and mock them on CSWork.
- Questions
- 1657
- Updated
- 2026-10-06
Interview questions 1657
Filter in the workspace- CodeStack Whose Pop Removes the Most Frequent Value, Ties Broken by Recency · AmazonMedium
- CodeLowest Common Manager of a Group of Employees in an Org Chart · AmazonMedium
- CodeEvery MEX Reachable With At Most One Bounded Increment · CitadelHard
- CodeCollapse runs of adjacent anagrams in a word list · DocuSignMedium
- CodeCourier Pay From Overlapping Deliveries With Peak-Window Multipliers · DoorDashHard
- QAnswer a large batch of variable-ratio queries from division equations · AmazonMedium
- CodeSort in Linear Time an Array Where At Most One Element Was Moved Out of Place · GleanMedium
- CodeSizes of 4-Connected Foreground Regions in a Binary Image, in Scan Order · MicrosoftEasy
- CodeSimulate Modulo-Assigned Document Indexers with Wrap-Around and Rank the Busiest · GleanMedium
- CodeShortest Manhattan Distance Between Any X and Any Y in a String or Grid · GleanMedium
- CodeRank Every Cell of a Distinct-Value Matrix Consistently Within Its Row and Column · GleanMedium
- CodeMake k Cuts in a Row of Positive Values to Maximize the Smallest Piece Sum · GleanMedium
- CodeGroup Words into Transitive Synonym Sets by Shared Two-Words-Before-and-After Context · GleanMedium
- CodeFind Which Words From a List Can Be Traced Through Adjacent Cells of a Letter Grid · GleanMedium
- CodeFind the k-th Largest Value Across Two Sorted Arrays Without Fully Merging Them · GleanMedium
- CodeFind the Cell with the Smallest Total Walking Distance to All Targets Around Walls · GleanMedium
- CodeEvaluate an Integer Expression with + - * / and No Parentheses · GleanMedium
- CodeDelete the Fewest Parentheses to Balance a String of Only Open and Close Brackets · GleanMedium
- CodeDecide If a Passenger Can Reach a Station Using Time-Indexed Train Routes and Transfers · GleanMedium
- CodeCount Index Triplets Whose Max Minus Min Is at Most d · IBMMedium
- CodeCount Employees With Unbroken Renewable Access at the Last Timestamp · IBMMedium
- CodeReturn the k Smallest Squares of a Sorted Integer Array in Order · UberHard
- CodeFind the Super Admin User Who Can Access Every Camera Through Nested Groups · VerkadaMedium
- CodeSimulate a Stack from Push, Pop and End-of-Input Commands · WexMedium
- CodeList All Permutations of an Alphanumeric String in Digit, Lowercase, Uppercase Order · WexMedium
- CodeBuild a Top-Down Reporting Forest from Employee-Manager Pairs · SnowflakeMedium
- CodeUnit Ratio Queries Across Independent Unit Families with Modular Answers · AppleMedium
- CodeSort Each Adjacent Pair of an Array, Leaving an Odd Last Element in Place · Capital OneMedium
- CodeLongest Strictly Rising Four-Direction Walk in an Integer Grid · VisaMedium
- CodeFind the Integer Point Covered by the Most Street Lamps · Capital OneMedium
- CodeCount Subarrays Whose Step-by-Step Changes Match an Up, Flat, Down Pattern · Capital OneMedium
- QFastest 1000 Meters: Max Average Speed from 5-Second Distance Splits · OptiverMedium
- QCount a Character in a String · DiscordMedium
- CodeCount OPTIVER in a Letter Grid Across Rows, Columns and Reversed Readings · OptiverMedium
- QReplace a Range of Nodes in a Linked List with Another Linked List · OracleEasy
- CodeMaximum Sum of Non-Adjacent Values in a Row · Walmart LabsMedium
- CodeFind deployable slots in a recurring week from allowed and freeze windows · StripeMedium
- CodeDecide whether every car can park given preferred spots and forward-only overflow · MercorMedium
- CodeClockwise Spiral Traversal of a Matrix With O(1) Extra Space and No Mutation · ByteDanceMedium
- CodeSum of Integers Up to n Divisible by 3, 5, or 7 · AbridgeHard
- CodeSimulate one disc-flipping board game move across all eight directions · AmazonMedium
- CodeRun-Length Compress a Character List With Multi-Digit Counts · AbridgeHard
- CodeReturn the K Smallest Pairwise Products of Two Sorted Arrays · LinkedInMedium
- CodeReturn Log Entries Within an Inclusive Time Range From a Sorted Log · AttentiveMedium
- CodeLength of the Longest Contiguous Subarray Summing to a Target · eBayEasy
- CodeExpand a Nested Repeat-Count Encoded String · AbridgeHard
- CodeLongest Strictly Increasing Path in a Grid with Four-Directional Moves · New RelicMedium
- CodeDasher Daily Pay from Order Events with Double Rate in Peak Windows · DoorDashMedium
- CodeCompress a String by Run-Length Counts, Keeping the Original When Not Shorter · New RelicMedium
- CodeVisit Every Listed Attraction Using Each Trail at Most Once · WhatnotMedium
- CodeMinimum Department Visits to Buy a Shopping List from a Store Map · WhatnotMedium
- CodeFirst Climb in Elevation Samples, Strict and With a Tolerated Partial Descent · StravaMedium
- CodeFind All Index Quadruples Summing to a Target Without Losing Positions · AirwallexMedium
- CodeFewest Repeat-Free Pieces After Deleting Every Copy of One Letter · SalesforceMedium
- CodeFewest Add-or-Subtract Power-of-Two Steps to Reduce n to Zero · SalesforceMedium
- CodeDelete One '5' From a Digit String to Get the Largest Number · CohereMedium
- CodeAssign Waiting Riders to the Earliest-Arriving Car on Fixed Routes · WhatnotMedium
- CodeShortest 8-Directional Clear Path Across a Binary Grid · MetaEasy
- CodeMerge Two N-ary Trees by Matching Node Keys · LinkedInEasy
- CodeLongest Chain of Linked Names in a Directed Acyclic Graph · OscarHard