cswork / OAOpen practice workspace

ONLINE ASSESSMENT · 72 PROBLEMS · 61 READY

Microsoft OA questions

72 Microsoft online assessment questions, 61 judge-ready. Read each statement, then solve it in Python, Java, C++ or Go in the CSWork workspace.

Exam format

Platform
HackerRank
Questions
2 coding
Time
90 min
Scoring
By test cases passed
Besides coding
None (occasionally a few MCQs or a debugging task)
Roles
SWE intern, New grad (SDE)
Notes
Intern/new-grad OAs are most often 2 HackerRank problems in 90 min; some batches use Codility (2 problems, 100–110 min, hidden test results not shown). Common topics: strings, greedy, sliding window, prefix sums, DP.
Sources

Last researched 2026-10

  1. #1Longest Path with Alternating Letters in TreeTree Paths · DP BasicsEstimated Hard
  2. #2Smallest Missing Positive after Merging A and BHashingEstimated Medium
  3. #3Erase Pairs of Identical LettersStacks & Heaps · Greedy · StringsEstimated Medium
  4. #4Roll Operation on StringPrefix & Ranges · StringsEstimated Medium
  5. #5Intern Tasks — Max Combined Reward PointsGreedyEstimated Medium
  6. #6Three Consecutive Replace — Max OperationsGreedy · Strings · HashingEstimated Medium
  7. #7Sum of Final Prices (Next Lower-or-Equal)Stacks & HeapsEstimated Medium
  8. #8Find Suitable LocationsGrid Search · Bits & MathEstimated Medium
  9. #9Assign ValuesGreedy · HashingEstimated Medium
  10. #10Balance the Game BoardSimulation · Prefix & RangesEstimated Medium
  11. #11Calculate Leftover StacksSimulation · Bits & MathEstimated Easy
  12. #12Check Path PresenceHashingEstimated Easy
  13. #13Cleaning RobotSimulation · Grid SearchEstimated Medium
  14. #14Compressed Representation SizeStrings · Prefix & Ranges · Two PointersEstimated Hard
  15. #15Construct Maximum Balanced CircleHashing · Greedy · Two PointersEstimated Hard
  16. #16Count Characters Before UppercaseHashing · StringsEstimated Easy
  17. #17Count Similar Substrings (Microsoft India)StringsEstimated Easy
  18. #18Count Subarrays with Bitwise OR PresentBits & Math · HashingEstimated Medium
  19. #19Shortest Board Length to Cover HolesBinary Search · GreedyEstimated Medium
  20. #20Find Fair IndexesPrefix & RangesEstimated Easy
  21. #21Find Array Uniqueness MedianBinary Search · Two Pointers · HashingEstimated Hard
  22. #22Find Max Sum with Same First and Last DigitHashingStatement only
  23. #23Find Min Num MovesIn-place Arrays · GreedyEstimated Medium
  24. #24Find Minimum CostKnapsack · GreedyStatement only
  25. #25Frog GameTwo Pointers · DP BasicsStatement only
  26. #26Get Alphabetically Smallest StringGreedy · StringsEstimated Easy
  27. #27Get Max Or SumBits & Math · Prefix & RangesEstimated Medium
  28. #28Get Minimum TimeKnapsack · Prefix & RangesEstimated Hard
  29. #29Great SubsequencesBits & MathEstimated Hard
  30. #30Total Waiting Time for Handmade ItemsBits & Math · Prefix & Ranges · In-place ArraysEstimated Hard
  31. #31Implement Queue using Stacks (Round 2, LC 232Iterators · Stacks & HeapsEstimated Easy
  32. #32In-Memory SQL with CSV InitializationStrings · Simulation · IteratorsStatement only
  33. #33Island Perimeter (Round 3, LC 463 :)Grid SearchEstimated Easy
  34. #34Longest Path With Different Adjacent CharactersTree Paths · DP BasicsEstimated Hard
  35. #35Maximum Number of Moves with Same ResultTree & Game DPEstimated Medium
  36. #36Maximize Number of Produced CarsKnapsack · GreedyEstimated Hard
  37. #37Maximum Total Number of Orders FulfilledGreedyEstimated Easy
  38. #38Maximum Sum of Two Non-Attacking RooksGreedy · In-place ArraysEstimated Medium
  39. #39Maximize Sum of Two Non-Overlapping FragmentsPrefix & Ranges · Two PointersEstimated Hard
  40. #40Maximize Types After Freeing ShelvesTwo Pointers · HashingEstimated Medium
  41. #41Maximizing Difference in Array Elements with MovesBinary Search · Prefix & Ranges · GreedyEstimated Hard
  42. #42Maximum CellsSimulation · GreedyStatement only
  43. #43Maximum Number PossibleGreedy · StringsStatement only
  44. #44Maximum Sum After MergesDP BasicsEstimated Medium
  45. #45Min Num LettersSubsequencesEasy
  46. #46Minimum Domino RemovalsSubsequencesEstimated Medium
  47. #47Minimize Difference Between Two NumbersGreedy · StringsEstimated Medium
  48. #48Minimum Cars to RemoveSubsequences · Binary SearchEstimated Hard
  49. #49Minimum Replacements Required to Make a Matrix BalancedGreedy · HashingEstimated Medium
  50. #50Minimum Substrings Without Repeating CharactersGreedy · HashingStatement only
  51. #51Minimum Swaps Required to Group All Red Balls TogetherGreedy · Prefix & RangesEstimated Medium
  52. #52Minimum Tokens RemainingBits & Math · SimulationEstimated Medium
  53. #53Order Records by Matching Start and EndHashingEstimated Easy
  54. #54Optimal Path in a GridGrid DP · Prefix & RangesEstimated Easy
  55. #55Prepare NotificationStringsEstimated Easy
  56. #56Product of XOR of All Good PairsHashing · Bits & MathEstimated Medium
  57. #57Rank Open BusinessesIn-place ArraysEstimated Easy
  58. #58Reorder Routes to Make All Paths Lead to the City ZeroUnion-FindEstimated Medium
  59. #59Retain Top K ValuesIn-place Arrays · Stacks & HeapsEstimated Easy
  60. #60Reverse an IntegerBits & MathEasy
  61. #61Shortest Compressed String After RemovalTwo Pointers · Strings · Prefix & RangesEstimated Hard
  62. #62Side Largest SquareBits & Math · Binary SearchEstimated Medium
  63. #63SkyscraperGreedyEstimated Easy
  64. #64Str with Longest LenStringsEstimated Medium
  65. #65Maximum Sum with TilesState MachinesEstimated Medium
  66. #66The Crazy RulerUnion-Find · Hashing · Prefix & RangesStatement only
  67. #67The Longest SpikeHashingEstimated Easy
  68. #68Three Partition ArrayTwo Pointers · In-place ArraysStatement only
  69. #69To Good ArraysBits & Math · State MachinesStatement only
  70. #70Valid Mixed Case LettersHashingEstimated Easy
  71. #71Word Pattern II (Round 1, LC 291 :)PartitioningEstimated Medium
  72. #72XOR ColoringKnapsack · Bits & MathStatement only