printcolumns

package
v0.0.0-...-5ce2504 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 5 Imported by: 0

README

Description

Given a binary tree, print column by column

Example 1:

Input:
         1
       /   \
      2      3
    /   \      \
   4     5       6
        /  \    /
       7    8  9

Output:
4
2 7
1 5
3 8 9
6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintColumns

func PrintColumns[T constraints.Ordered](node *trees.BinaryNode[T])

PrintColumns prints a tree column by column

Types

This section is empty.

Jump to

Keyboard shortcuts

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