Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 128 Bytes

File metadata and controls

3 lines (2 loc) · 128 Bytes

Idea

This problem is natural to use BFS search. and record the first node at each level, then return the last node value.