Documentation
¶
Index ¶
- Variables
- func CompareInf(t *testing.T, inputGenerator, runACFunc, runFunc interface{})
- func CountNodes(root *TreeNode) (cnt int)
- func GetParents(root *TreeNode) map[*TreeNode]*TreeNode
- func RunLeetCodeClass(t *testing.T, constructor interface{}, rawInputs, rawOutputs []string) error
- func RunLeetCodeClassWithCase(t *testing.T, constructor interface{}, rawInputs, rawOutputs []string, ...) (err error)
- func RunLeetCodeClassWithExamples(t *testing.T, constructor interface{}, rawExamples [][3]string, ...) (err error)
- func RunLeetCodeFunc(t *testing.T, f interface{}, rawInputs [][]string, rawOutputs [][]string) error
- func RunLeetCodeFuncWithCase(t *testing.T, f interface{}, rawInputs [][]string, rawOutputs [][]string, ...) (err error)
- func RunLeetCodeFuncWithExamples(t *testing.T, f interface{}, rawExamples [][]string, targetCaseNum int) (err error)
- func ToGraph(root *TreeNode) [][]int
- func ToGraphWithDir(root *TreeNode) [][]DirEdge
- func ToWeightedGraph(root *TreeNode) [][]Edge
- func Values(head *ListNode) (values []int)
- type DirEdge
- type Edge
- type Interval
- type ListNode
- type Node
- type Point
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CountNodes ¶
func GetParents ¶
func RunLeetCodeClass ¶
func RunLeetCodeClassWithExamples ¶
func RunLeetCodeClassWithExamples(t *testing.T, constructor interface{}, rawExamples [][3]string, targetCaseNum int) (err error)
若反射出来的函数或 rawExamples 数据不合法,则会返回一个非空的 error,否则返回 nil
func RunLeetCodeFunc ¶
func RunLeetCodeFuncWithCase ¶
func RunLeetCodeFuncWithExamples ¶
func RunLeetCodeFuncWithExamples(t *testing.T, f interface{}, rawExamples [][]string, targetCaseNum int) (err error)
rawExamples[i] = 输入+输出 若反射出来的函数或 rawExamples 数据不合法,则会返回一个非空的 error,否则返回 nil
func ToGraphWithDir ¶
func ToWeightedGraph ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.