Microsoft | Onsite | Minimal Bus

Microsoft Onsite Interview has tree times. So had tree coding questions.

First coding question is 1315. Sum of Nodes with Even-Valued Grandparent

Second coding question is 239. Sliding Window Maximum

Last coding questions:
Give an array of time when will the next bus arrive of a station.
Get the Minimal bus number of this road. These station are in a road.

eg.

input: [1, 2, 3, 4, 5]
output: 1
Comments (8)