test

package
v0.0.0-...-6b6dd9e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

github.com/bingohuang/go-codes * 题目: [24]两两交换链表中的节点 难度: 2 地址: https://leetcode-cn.com/problems/swap-nodes-in-pairs/

github.com/bingohuang/go-codes * 题目: [25]K 个一组翻转链表 难度: 3 地址: https://leetcode-cn.com/problems/reverse-nodes-in-k-group/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test24

func Test24(t *testing.T)

func Test25

func Test25(t *testing.T)

Types

type IO24

type IO24 struct {
	// contains filtered or unexported fields
}

input and ouput

type IO25

type IO25 struct {
	// contains filtered or unexported fields
}

input and ouput

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

* 定义单链表结构

type Node

type Node struct {
	Val   int
	Left  *Node
	Right *Node
	Next  *Node
}

Definition for a Node.

type TreeNode

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

Definition for a binary tree node.

Jump to

Keyboard shortcuts

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