leetcode

package
v0.0.0-...-de2953b Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 5 Imported by: 0

README

LeetCode

如何找到对应题官网

举例如 001_two-sum.go, 代表这是第一题,文件名就是leetcode网址参数,即:https://leetcode-cn.com/problems/two-sum/

如何测试

每道题都有对应测试,可以直接运行 go test -v 001_two-sum* 查看。

一些公共方法和通用类型定义在0_type.go0_utils.go中。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

Jump to

Keyboard shortcuts

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