On-site 1:
You are given multiple cities and a city A, each city is at a distance represented by time it takes to reach it. You are given n favorite cities, find the shortest time to reach any of the favorite cities and return the time required to reach favorite city
On-site 2:
- Given a binary tree, return true if all the values of node are equal
- Given a binary tree, return maximum binary sub tree size where all values of node are equal
2
2 2
2 2 2 3ans: 3
On-site 3:
String expression evaluation
Ex: 2a+2b-(a-b)
Ans: a+3b
Comments (8)


