Microsoft | SDE2 | Bangalore | Interview experience | Online Assessment [Reject]

Applied through HR Contact in Linkedin, got codility test link within 15 days of first call with HR.
Test Date: 5 Jan 2022

Round 1 – Online Assessment
Number of questions: 2
Duration: 60 minutes

Question 1: Cleaning robot (similar to LC Robot Room Cleaner [premium] or view description in linlaw blog)

Question 2: Minimum moves to transform a list so that each element equals its own frequency
Description:
There is an array A of N integers sorted in non-decreasing order. In one move, you can either remove an integer from A or insert an integer before or after any element of A. The goal is to achieve an array in which all values X that are present in the array occur exactly X times.
Similar to Non-decreasing Array, Minimum Moves to Equal Array Elements II

Comments (0)