easy

package
v0.0.0-...-cdffa6e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsDuplicate

func ContainsDuplicate(nums []int) bool

ContainsDuplicate 存在重复元素 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x248f5/

func Intersect

func Intersect(nums1, nums2 []int) []int

Intersect 两个数组的交集 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x2y0c2/

func IsValidSudoku

func IsValidSudoku(board [][]byte) bool

IsValidSudoku 有效的数独 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x2f9gg/

func MaxProfit

func MaxProfit(prices []int) int

MaxProfit 买卖股票的最佳时机 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x2zsx1/

func MoveZeroes

func MoveZeroes(nums []int)

MoveZeroes 移动零 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x2ba4i/

func RemoveDuplicates

func RemoveDuplicates(nums []int) ([]int, int)

RemoveDuplicates 删除排序数组中的重复项 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x2gy9m/

func ReverseString

func ReverseString(s []byte)

ReverseString 反转字符串 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/xnhbqj/

func Rotate

func Rotate(nums []int, k int) []int

Rotate 旋转数组 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x2skh7/

func RotateMatrix

func RotateMatrix(matrix [][]int)

RotateMatrix 旋转图像 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/xnhhkv/

func SingleNumber

func SingleNumber(nums []int) int

SingleNumber 只出现一次的数字 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x21ib6/

func TwoSum

func TwoSum(nums []int, target int) []int

TwoSum 两数之和 @see https://leetcode-cn.com/leetbook/read/top-interview-questions-easy/x2jrse/

Types

This section is empty.

Jump to

Keyboard shortcuts

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