Best solutions for Microsoft interview tasks.
Microsoft, as all other companies, doesn’t share information about the tasks they use during their interviewing process. But internet is full of lists of the tasks which collecting the people who participating in the interview. IMHO the most comprehensive and the most actual list is collected here.
So I decided it would be nice idea to collect solutions for these task in one set of articles. I’m going to write detailed explanations for each solution how it works and why I believe it is the best. I will use C++17 programming language. Each time when I finish a new article I will change corresponding string in the table of contents to a hyperlink to the article.
Small explanation about difficulty of the tasks. As you can see some tasks are market like [New Grad], [Experienced] and so on. As I understand it doesn’t show difficulty of the task, it shows a level of position which was proposed by Microsoft to a person who was interviewed.
Descriptions of the tasks from Microsoft may be slightly different than the similar solutions on Leetcode or other websites. I will describe such cases I know.
You might be interested to read a similar set of articles about the best solutions for Amazon interview tasks here and solutions for very nice set of lessons from Codility here.
Table of contents.
- Pattern recognition
- Numbers With Equal Digit Sum
- Min Moves to Make String Without 3 Identical Consecutive Letters
- Max Network Rank
- Min Swaps to Make Palindrome
- Longest Substring Without 3 Contiguous Occurrences of Letter
- Lexicographically Smallest String
- Min Deletions to Make Frequency of Each Letter Unique
- String Without 3 Identical Consecutive Letters
- Longest Semi-Alternating Substring
- Min Steps to Make Piles Equal Height
- Day of Week
- Max Inserts to Obtain String Without 3 Consecutive ‘a’
- Concatenated String Length with unique Characters
- Largest K such that both K and -K exist in array
- Min Swaps to Group Red Balls
- Max Length of a Concatenated String with Unique Characters
- Unique Integers That Sum Up To 0
- Min Deletions To Obtain String in Right Format
- Particle Velocity
- Partition array into N subsets with balanced sum
- Widest Path Without Trees [Experienced]
- Jump Game [Experienced]
- Fair Indexes
- Meeting Rooms II
- Light Bulb Switcher
- Plane Seat Reservation
- Crop Words
- Max Chunks to Sort Array
- Largest number X which occurs X times
- Largest M-aligned Subset
- Min Cost to Get String Without 2 Identical Consecutive Letters
- Riddle
- Count Visible Nodes in Binary Tree 🆕
- Largest Alphabetic Character 🆕
- [23/05/2020] Count Of Hours Variations 🆕