Versions in this module Expand all Collapse all v0 v0.0.1 Aug 22, 2020 Changes in this version + func FindComplement(num int) int + func FindInMountainArray(target int, m *MountainArray) int + func FindTheDifference(s, t string) byte + func Fraction(cont []int) []int + func FractionX(cont []int) []int + func GcdOfStrings(a, b string) string + func IsMatch(s string, p string) bool + func IsPalindrome(s string) bool + func IsPalindromeX(s string) bool + func IsPowerOfTwo(n int) bool + func IsSubsequence(s, t string) bool + func IsValidPalindrome(s string, k int) bool + func Lcs(text1 string, text2 string) int + func LongestPalindrome(s string) string + func LongestPalindromeX(s string) string + func LongestSubsequence(arr []int, difference int) int + func MaxProduct(words []string) int + func MinCostToMoveChips(chips []int) int + func ShortestPalindrome(s string) string + func ShortestPalindromeX(s string) string + func SingleNumber(nums []int) int + func SingleNumber2(nums []int) int + func SingleNumber2x(nums []int) int + func SingleNumber3(nums []int) []int + func StrLcs(text1 string, text2 string) string + func String2int(str string) (res int) + func ValidMountingArray(m []int) bool + func ValidPalindrome(s string) bool + func ValidPalindromeX(s string) bool + type LFUCache struct + Cap int + func ConstructorLFU(capacity int) LFUCache + func (lfu *LFUCache) Get(key int) int + func (lfu *LFUCache) Put(key int, value int) + type LRUCache struct + func NewLRU(capacity int) LRUCache + func (lru *LRUCache) Get(key int) int + func (lru *LRUCache) Put(key, value int) + type MountainArray struct + type Node struct + C byte + Children map[byte][]*Node + End bool + Parent *Node + Size int + func (n *Node) Append(c byte, child *Node) + func (n *Node) String() string + func (n *Node) StringLevel(level int, finishNodes map[*Node]bool) string