utils

package
v0.0.0-...-3f302a8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryTreeEqual

func BinaryTreeEqual(t1, t2 *TreeNode) bool

func SortTest

func SortTest(n int, sort func([]int)) bool

Types

type Comparabler

type Comparabler interface {
	More(interface{}) bool
	Less(interface{}) bool
}

type TreeNode

type TreeNode struct {
	Val   int
	Left  *TreeNode
	Right *TreeNode
}

Definition for a binary tree node.

func BinaryTreeConstructor

func BinaryTreeConstructor(vals []interface{}) *TreeNode

Jump to

Keyboard shortcuts

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