Problem description
You're given a grid where each cell grid[r][c] represent city height, overall country (grid) is surrounded by an ocean. You're also given coordinates of two cities c1 and c2, find out the city with minimum height from where we can shower water such that it can reach to the given two cities.
Water can only flow from a city with height h1 to city with height h2 iff h1 >= h2.
Solution proposed
Follow-up
Instead of returning city with minimum height, return city from which water can reach both cities the fastest.
Solution proposed
Interview Experience Post: https://leetcode.com/discuss/interview-question/2199510/Google-or-L4-or-India-or-June-2022-or-Accepted