_021_12

package
v0.0.0-...-982d520 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinationSumIV

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

Combination Sum IV leetcode: https://leetcode-cn.com/problems/combination-sum-iv/

func EvenOddTree

func EvenOddTree(root *TreeNode) bool

func HandOfStraights

func HandOfStraights(hand []int, W int) bool

Hand of Straights leetcode: https://leetcode-cn.com/problems/hand-of-straights/

func HouseRobberIII

func HouseRobberIII(root *TreeNode) int

func HouseRobberIII2

func HouseRobberIII2(root *TreeNode) int

func IsEven

func IsEven(x int) bool

func PerfectNumber

func PerfectNumber(num int) bool

Perfect Number leetcode: https://leetcode-cn.com/problems/perfect-number/

func ShortestCOmpletingWord

func ShortestCOmpletingWord(licensePlate string, words []string) string

Shortest Completing Word leetcode:https://leetcode-cn.com/problems/shortest-completing-word/

func TruncateSentence

func TruncateSentence(s string, k int) string

Types

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

Odd Even Linked List leetcode: https://leetcode-cn.com/problems/odd-even-linked-list/

func OddEvenLinkedList

func OddEvenLinkedList(head *ListNode) *ListNode

type NumArray

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

Range Sum Query - Mutable leetcode: https://leetcode-cn.com/problems/range-sum-query-mutable/

func Constructor

func Constructor(nums []int) NumArray

func (*NumArray) Add

func (this *NumArray) Add(i, v int)

func (*NumArray) Query

func (this *NumArray) Query(i int) int

func (*NumArray) SumRange

func (this *NumArray) SumRange(left int, right int) int

func (*NumArray) Update

func (this *NumArray) Update(index int, val int)

type TreeNode

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

House Robber III leetcode: https://leetcode-cn.com/problems/house-robber-iii/

Jump to

Keyboard shortcuts

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