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