I just took the Microsoft OA and it was easier than I expected. Hope I don't jinx my chances by saying that lol, but here's hoping all goes good.
Anyways, I got asked three coding problems only, no written down questions or explanations to give. or multiple choice questions. Just 3 coding problems.
-
https://leetcode.com/problems/fizz-buzz/
-
Given a string S with both lowercase and uppercase letters, return the biggest (sorted alphabetically) letter that appears both in lowercase and uppercase. The returned letter must be in uppercase. If there is no such letter, return 'NO'.
Examples:
'aaacbAbCd', return 'C'
'aA', return 'A'
'abcdE', return 'NO'
'a', return 'NO'
-
Maximum possible value by inserting '5'
Examples:
input: 1234 -> output: 51234
input: 7643 -> output 76543
input: 0 -> output 50
input: -661 -> output -5661
Location: Seattle
Position: Software Eng