cswork / 题目类别打开练习工作台

按题目类别

编程与算法 面试题

编程与算法类面试准备:1657 道面试题,来自候选人真实面试。在 CSWork 阅读、练习、模拟。

面试题
1657
最近更新
2026-10-06
  1. 编程Stack Whose Pop Removes the Most Frequent Value, Ties Broken by Recency · Amazon中等
  2. 编程Lowest Common Manager of a Group of Employees in an Org Chart · Amazon中等
  3. 编程Every MEX Reachable With At Most One Bounded Increment · Citadel困难
  4. 编程Collapse runs of adjacent anagrams in a word list · DocuSign中等
  5. 编程Courier Pay From Overlapping Deliveries With Peak-Window Multipliers · DoorDash困难
  6. 面试Answer a large batch of variable-ratio queries from division equations · Amazon中等
  7. 编程Sort in Linear Time an Array Where At Most One Element Was Moved Out of Place · Glean中等
  8. 编程Sizes of 4-Connected Foreground Regions in a Binary Image, in Scan Order · Microsoft简单
  9. 编程Simulate Modulo-Assigned Document Indexers with Wrap-Around and Rank the Busiest · Glean中等
  10. 编程Shortest Manhattan Distance Between Any X and Any Y in a String or Grid · Glean中等
  11. 编程Rank Every Cell of a Distinct-Value Matrix Consistently Within Its Row and Column · Glean中等
  12. 编程Make k Cuts in a Row of Positive Values to Maximize the Smallest Piece Sum · Glean中等
  13. 编程Group Words into Transitive Synonym Sets by Shared Two-Words-Before-and-After Context · Glean中等
  14. 编程Find Which Words From a List Can Be Traced Through Adjacent Cells of a Letter Grid · Glean中等
  15. 编程Find the k-th Largest Value Across Two Sorted Arrays Without Fully Merging Them · Glean中等
  16. 编程Find the Cell with the Smallest Total Walking Distance to All Targets Around Walls · Glean中等
  17. 编程Evaluate an Integer Expression with + - * / and No Parentheses · Glean中等
  18. 编程Delete the Fewest Parentheses to Balance a String of Only Open and Close Brackets · Glean中等
  19. 编程Decide If a Passenger Can Reach a Station Using Time-Indexed Train Routes and Transfers · Glean中等
  20. 编程Count Index Triplets Whose Max Minus Min Is at Most d · IBM中等
  21. 编程Count Employees With Unbroken Renewable Access at the Last Timestamp · IBM中等
  22. 编程Return the k Smallest Squares of a Sorted Integer Array in Order · Uber困难
  23. 编程Find the Super Admin User Who Can Access Every Camera Through Nested Groups · Verkada中等
  24. 编程Simulate a Stack from Push, Pop and End-of-Input Commands · Wex中等
  25. 编程List All Permutations of an Alphanumeric String in Digit, Lowercase, Uppercase Order · Wex中等
  26. 编程Build a Top-Down Reporting Forest from Employee-Manager Pairs · Snowflake中等
  27. 编程Unit Ratio Queries Across Independent Unit Families with Modular Answers · Apple中等
  28. 编程Sort Each Adjacent Pair of an Array, Leaving an Odd Last Element in Place · Capital One中等
  29. 编程Longest Strictly Rising Four-Direction Walk in an Integer Grid · Visa中等
  30. 编程Find the Integer Point Covered by the Most Street Lamps · Capital One中等
  31. 编程Count Subarrays Whose Step-by-Step Changes Match an Up, Flat, Down Pattern · Capital One中等
  32. 面试Fastest 1000 Meters: Max Average Speed from 5-Second Distance Splits · Optiver中等
  33. 面试Count a Character in a String · Discord中等
  34. 编程Count OPTIVER in a Letter Grid Across Rows, Columns and Reversed Readings · Optiver中等
  35. 面试Replace a Range of Nodes in a Linked List with Another Linked List · Oracle简单
  36. 编程Maximum Sum of Non-Adjacent Values in a Row · Walmart Labs中等
  37. 编程Find deployable slots in a recurring week from allowed and freeze windows · Stripe中等
  38. 编程Decide whether every car can park given preferred spots and forward-only overflow · Mercor中等
  39. 编程Clockwise Spiral Traversal of a Matrix With O(1) Extra Space and No Mutation · ByteDance中等
  40. 编程Sum of Integers Up to n Divisible by 3, 5, or 7 · Abridge困难
  41. 编程Simulate one disc-flipping board game move across all eight directions · Amazon中等
  42. 编程Run-Length Compress a Character List With Multi-Digit Counts · Abridge困难
  43. 编程Return the K Smallest Pairwise Products of Two Sorted Arrays · LinkedIn中等
  44. 编程Return Log Entries Within an Inclusive Time Range From a Sorted Log · Attentive中等
  45. 编程Length of the Longest Contiguous Subarray Summing to a Target · eBay简单
  46. 编程Expand a Nested Repeat-Count Encoded String · Abridge困难
  47. 编程Longest Strictly Increasing Path in a Grid with Four-Directional Moves · New Relic中等
  48. 编程Dasher Daily Pay from Order Events with Double Rate in Peak Windows · DoorDash中等
  49. 编程Compress a String by Run-Length Counts, Keeping the Original When Not Shorter · New Relic中等
  50. 编程Visit Every Listed Attraction Using Each Trail at Most Once · Whatnot中等
  51. 编程Minimum Department Visits to Buy a Shopping List from a Store Map · Whatnot中等
  52. 编程First Climb in Elevation Samples, Strict and With a Tolerated Partial Descent · Strava中等
  53. 编程Find All Index Quadruples Summing to a Target Without Losing Positions · Airwallex中等
  54. 编程Fewest Repeat-Free Pieces After Deleting Every Copy of One Letter · Salesforce中等
  55. 编程Fewest Add-or-Subtract Power-of-Two Steps to Reduce n to Zero · Salesforce中等
  56. 编程Delete One '5' From a Digit String to Get the Largest Number · Cohere中等
  57. 编程Assign Waiting Riders to the Earliest-Arriving Car on Fixed Routes · Whatnot中等
  58. 编程Shortest 8-Directional Clear Path Across a Binary Grid · Meta简单
  59. 编程Merge Two N-ary Trees by Matching Node Keys · LinkedIn简单
  60. 编程Longest Chain of Linked Names in a Directed Acyclic Graph · Oscar困难