Google interview question

1 . Graph based questions solved using BFS on matrix 2. Greedy + Binary Search question , optimisation problem was not able to solve this one