Tip 1 : Practice as much as you can.
Tip 2 : Prepare for company, not in general.
Tip 3 : Your past work should be objective and your contribution should be very clear
Tip 1 : Keep only relevant things for the job you are applying.
Tip 2 : Minimal data with measurable contribution and effect.
This was a Data Structural round.
Two islands are considered to be the same if and only if one island is equal to another(not rotated or reflected) i.e if we can translate one island on another without rotating or reflecting then it would be considered as the same islands.
1 1 0
0 0 1
0 0 1
In this example, we have two islands and they would be considered as distinct islands as we can not translate them on one another even if they have the same no of 1's.
1 1 0 0 0
1 1 0 0 0
0 0 0 1 1
0 0 0 1 1
In this example, we have two islands and they are the same as we can translate one island onto another island, so our answer should be 1.
I used Depth-first search to determine connected components.
This was a Data Structural round.
The length of each word should be less than or equal to ‘M’.
You can’t break a word, i.e. the entire word should come in the same line and it must not be the case that a part of it comes in the first line and another part on the next line.
I first used recursion and then converted it to a dynamic programming based solution.
This was a System Design round.
Design something similar to red bus which can handle bookings and can onboard vendors and customers to their platform
Tip 1 : Clear out the requirements first.
Tip 2 : Convey your thoughts regularly and don't overthink the problem.
Tip 3 : Design small and then expand.
This was a System Design round
Design synchronous system which can handle producers and consumers. Pretty much the same as a producer-consumer problem. However, the discussion went deep into implementation and the pros and cons.
Tip 1 : Have your basics cleared out.
Tip 2 : Be well versed in multi-threading
This was an HR round.
It was more or less focused on the previous experience. Idea was to check the fitment for the team and Microsoft culture.
Tip 1 : Be open and honest about your work.
Tip 2 : Try to answer questions objectively where they can measure your impact and the value your brought to the company.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which operator is used for exponentiation in Python?