Print the boundary of a binary tree in an anti-clockwise direction (left boundary, leaves, right boundary in reverse), and find the perimeter of the largest island in a 2D grid.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.