Documentation ¶
Index ¶
- func AssignCookies(g []int, s []int) (maxNumber int)
- func Candy(ratings []int) (I int)
- func ContainsDuplicate(nums []int) bool
- func CountPrimes(n int) int
- func CountPrimes2(n int) int
- func EraseOverLapIntervals(intervals [][]int) int
- func FindTheDifference(s, t string) (B byte)
- func FindTheDifference2(s, t string) byte
- func FindTheDifference3(s, t string) byte
- func FindTheDifference4(s, t string) (B byte)
- func FirstUniqChar(s string) int
- func FlippingMatrix(A [][]int) int
- func GroupAnagrams(strs []string) (ans [][]string)
- func IsIsomorphic(s, t string) bool
- func LastStoneWeight(stones []int) int
- func LemonadeChange(bills []int) (B bool)
- func MaxNumber(nums1, nums2 []int, k int) []int
- func MaxStockProfit(prices []int, fee int) int
- func MaxStockProfit2(prices []int, fee int) int
- func MinCostClimbingStairs(cost []int) int
- func MineSplit(s string) (F []int)
- func MonotoneIncreasingDigits(N int) (I int)
- func OfficialMonotoneIncreasingDigits(n int) int
- func PascalTriangle(numRows int) [][]int
- func Permute(nums []int) (ans [][]int)
- func PredictPartyVictory(senate string) (S string)
- func RemoveDuplicateLetters(s string) string
- func RotateImage(matrix [][]int)
- func RotateImage2(matrix [][]int)
- func SearchRange(nums []int, target int) []int
- func SplitArray(nums []int) bool
- func SplitIntoFibonacci(s string) (F []int)
- func UniquePaths(m, n int) int
- func WiggleSubsequence(nums []int) int
- func WiggleSubsequence2(nums []int) (I int)
- func WordPattern(pattern string, s string) bool
- func ZigzagLevelOrder(root *TreeNode) (L [][]int)
- func ZigzagLevelOrder2(root *TreeNode) (L [][]int)
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignCookies ¶
func ContainsDuplicate ¶
func CountPrimes ¶
func CountPrimes2 ¶
官方题解:埃氏筛 如果一个数为质数,则这个数所有倍数的数为和数,在数组中置为1 为什么不从2*x开始标记而是从x*x开始标记? 因为2*x开始标记可能会被之前的数重复标记
func EraseOverLapIntervals ¶
func FindTheDifference ¶
func FirstUniqChar ¶
func FlippingMatrix ¶
func GroupAnagrams ¶
func IsIsomorphic ¶
func LastStoneWeight ¶
func LemonadeChange ¶
func MaxStockProfit ¶
func MaxStockProfit2 ¶
func MinCostClimbingStairs ¶
func PascalTriangle ¶
func PredictPartyVictory ¶
Dota2 Senate leetCode: https://leetcode-cn.com/problems/dota2-senate/
func RemoveDuplicateLetters ¶
栈 num->每个字母的个数, stack->栈, inStack->是否在栈中
func SearchRange ¶
func SplitArray ¶
func UniquePaths ¶
func WiggleSubsequence ¶
func WiggleSubsequence2 ¶
func WordPattern ¶
Types ¶
Source Files ¶
- BestTimeToBuyStock.go
- assignCookies.go
- candy.go
- constructBinaryTree.go
- containsDuplicate.go
- countPrimes.go
- dota2Senate.go
- findTheDifference.go
- firstUniqueCharacter.go
- flippingMatrix.go
- groupAnagrams.go
- isomorphicStrings.go
- lastStoneWeight.go
- lemonadeChange.go
- maxNumber.go
- minCostClimbingStairs.go
- monotoneIncreasingDigits.go
- non-overlappingIntervals.go
- pascalTriangle.go
- permutations.go
- removeDuplicateLetters.go
- rotateImage.go
- searchRange.go
- splitArray.go
- splitArrayIntoFibonacci.go
- uniquePaths.go
- wiggleSubsequence.go
- wordPattern.go
- zigzagLevelOrder.go
Click to show internal directories.
Click to hide internal directories.