Documentation
¶
Index ¶
- func IntegerBreak(n int) int
- func LengthOfLIS(nums []int) int
- func LongestPalindrome(s string) string
- func MaxSubarraySum(nums []int) int
- func MinDistance(word1 string, word2 string) int
- func MinPathSum(grid [][]int) int
- func NthUglyNumber(n int) int
- func UniquePaths(m int, n int) int
- func UniquePathsWithObstacles(obstacleGrid [][]int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntegerBreak ¶
func LengthOfLIS ¶
LengthOfLIS returns the length of the longest strictly increasing subsequence.
func LongestPalindrome ¶
LongestPalindrome return the longest palindromic substring in s
func MaxSubarraySum ¶
MaxSubarraySum returns max sum of subarray.
func MinDistance ¶
MinDistance returns the minimum number of operations required to convert word1 to word2.
func MinPathSum ¶
MinPathSum returns minimizes the sum of all numbers along path that from top left to bottom right
func NthUglyNumber ¶
NthUglyNumber returns the nth ugly number. Ugly number is a positive number whose prime factors only include 2, 3, and/or 5
func UniquePaths ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.