You are given an m x n forest grid: 0 is an obstacle, 1 is walkable ground, and values above 1 are trees of that height. Cut trees in increasing order of height, walking in four directions; cutting a…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.