Skip to content

Instantly share code, notes, and snippets.

@esys
Created August 19, 2020 20:07
Show Gist options
  • Save esys/66b0e49b2dd21840ddbd1be2ac09145e to your computer and use it in GitHub Desktop.
Save esys/66b0e49b2dd21840ddbd1be2ac09145e to your computer and use it in GitHub Desktop.
func DFRec(n *Node) {
if n == nil {
return
}
DFRec(n.Left)
n.Process()
DFRec(n.Right)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment