Documentation
¶
Index ¶
- func BinaryTreeInorderTraversal(root *TreeNode) []int
- func BinaryTreeRightSideView(root *TreeNode) []int
- func BulbSwitcherIII(light []int) int
- func CapacityToShipPackagesWithinDDays(weights []int, D int) int
- func ContiguousSequenceLCCI(nums []int) int
- func DecodeWays(s string) int
- func FindMinimumInRotatedArrayII(nums []int) int
- func FindMinimumInRotatedSortedArray(nums []int) int
- func HouseRobber(nums []int) int
- func HouseRobberII(nums []int) int
- func Implement_strStr(haystack, needle string) int
- func IntegerBreak(n int) int
- func LargestDivisibleSubset(nums []int) []int
- func LargestNumber(nums []int) string
- func LongestCommonSubsequence(text1, text2 string) int
- func MajorityElementII(nums []int) []int
- func MaximumLengthOfRepeatedSubarray(nums1, nums2 []int) int
- func MaximumLengthOfSubarrayWithPositiveProduct(nums []int) int
- func MaximumSwap(num int) int
- func MinimumDistanceBetweenBSTNodes(root *TreeNode) int
- func MinimumPathSum(grid [][]int) int
- func MinimumSizeSubarraySum(target int, nums []int) int
- func NaryTreeLevelOrderTraversal(root *Node) [][]int
- func NumberOfLongestIncreasingSubsequence(nums []int) int
- func RangeSumOfBST(root *TreeNode, low, high int) int
- func RangeSumOfBST2(root *TreeNode, low, high int) int
- func RemoveDuplicates(nums []int) int
- func ScrambleString(s1, s2 string) bool
- func SearchInRotatedSortedArray(nums []int, target int) bool
- func SingleNumberII(nums []int) int
- func SumOfSquareNumbers(c int) bool
- func SumOfSquareNumbers2(c int) bool
- func SumOfTwoIntegers(a, b int) int
- func UglyNumber(n int) bool
- func VolumeOfHistogramLCCI(height []int) int
- type ListNode
- type Node
- type TreeNode
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryTreeInorderTraversal ¶
func BinaryTreeInorderTraversal(root *TreeNode) []int
func BinaryTreeRightSideView ¶
func BinaryTreeRightSideView(root *TreeNode) []int
func BulbSwitcherIII ¶
func ContiguousSequenceLCCI ¶
func DecodeWays ¶
func HouseRobber ¶
func HouseRobberII ¶
func IntegerBreak ¶
func LargestDivisibleSubset ¶
func LargestNumber ¶
func LongestCommonSubsequence ¶
最长子字符串类似题目 dp解法
func MaximumSwap ¶
func MinimumDistanceBetweenBSTNodes ¶
func MinimumDistanceBetweenBSTNodes(root *TreeNode) int
父子节点直接的最小值
func MinimumPathSum ¶
func MinimumSizeSubarraySum ¶
func RangeSumOfBST ¶
func RangeSumOfBST2 ¶
func RemoveDuplicates ¶
func SingleNumberII ¶
func SumOfSquareNumbers ¶
func SumOfSquareNumbers2 ¶
func SumOfTwoIntegers ¶
func UglyNumber ¶
func VolumeOfHistogramLCCI ¶
Types ¶
type TreeNode ¶
func IncreasingOrderSearchTree ¶
func IncreasingOrderSearchTree(root *TreeNode) *TreeNode
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
func (*Trie) SearchPrefix ¶
func (*Trie) StartsWith ¶
* Returns if there is any word in the trie that starts with the given prefix.
Source Files
¶
- binaryTreeInorderTraversal.go
- binaryTreeRightSideView.go
- bulbSwitcherIII.go
- capacityToShipPackagesWithinDDays.go
- contiguousSequenceLCCI.go
- decodeWays.go
- findMinimumInRotatedArrayII.go
- findMinimumInRotatedSortedArray.go
- houseRobber.go
- houseRobberII.go
- implementTrie.go
- implement_strStr.go
- increasingOrderSearchTree.go
- integerBreak.go
- largestDivisibleSubset.go
- largestNumber.go
- longestCommonSubsequence.go
- majorityElementII.go
- maximumLengthOfRepeatedSubarray.go
- maximumLengthofSubarrayWithPositiveProduct.go
- maximumSwap.go
- minimumDistanceBetweenBSTNodes.go
- minimumPathSum.go
- minimumSizeSubarraySum.go
- n-aryTreeLevelOrderTraversal.go
- numberOfLongestIncreasingSubsequence.go
- rangeSumOfBST.go
- removeDuplicatesII.go
- scrambleString.go
- searchInRotatedSortedArrayII.go
- singleNumberII.go
- sumOfSquareNumbers.go
- sumOfTwoIntegers.go
- swapNodesInPairs.go
- uglyNumber.go
- volumeOfHistogramLCCI.go
Click to show internal directories.
Click to hide internal directories.