problem515

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 0 Imported by: 0

README

< Previous                  Next >

515. Find Largest Value in Each Tree Row (Medium)

You need to find the largest value in each row of a binary tree.

Example:

Input: 
      1
     / \
    3   2
   / \   \  
  5   3   9 

Output: [1, 3, 9]

[Tree] [Depth-first Search] [Breadth-first Search]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL