[Hacker Earth] Grid of Many XorsRead more
[Hacker Earth] Killjee And SaraffRead more
[Hacker Earth] Queensland and SchoolsRead more
[Hacker Earth] Monk and ChocolatesRead more
[Hacker Earth] Naruto`s PunishmentRead more
[LeetCode] Destination City

1436. Destination City

You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to cityBi. Return the destination city, that is, the city without any path outgoing to another city.

It is guaranteed that the graph of paths forms a line without any loop, therefore, there will be exactly one destination city.

Read more
[Hacker Earth] Killjee and citiesRead more
[Hacker Earth] Permutation and InversionsRead more
[Hacker Earth] Alex and Priority RequestsRead more
[Hacker Earth] Ways to a BSTRead more