cswork / categoriesOpen practice workspace

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