chore: add package level comments
This commit is contained in:
parent
cc87c4b30c
commit
ee1868a10e
303 changed files with 303 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
// Package q300 implements a solution for https://leetcode.com/problems/longest-increasing-subsequence/
|
||||
package q300
|
||||
|
||||
func lengthOfLIS(nums []int) int {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q322 implements a solution for https://leetcode.com/problems/coin-change/
|
||||
package q322
|
||||
|
||||
// Note: The cache size only needs to be min(max(coins), amount).
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q328 implements a solution for https://leetcode.com/problems/odd-even-linked-list/
|
||||
package q328
|
||||
|
||||
type ListNode struct {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q334 implements a solution for https://leetcode.com/problems/increasing-triplet-subsequence/
|
||||
package q334
|
||||
|
||||
import "math"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q338 implements a solution for https://leetcode.com/problems/counting-bits/
|
||||
package q338
|
||||
|
||||
func countBits(n int) []int {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q345 implements a solution for https://leetcode.com/problems/reverse-vowels-of-a-string/
|
||||
package q345
|
||||
|
||||
func isVowel(b byte) bool {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q373 implements a solution for https://leetcode.com/problems/find-k-pairs-with-smallest-sums/
|
||||
package q373
|
||||
|
||||
import "container/heap"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q374 implements a solution for https://leetcode.com/problems/guess-number-higher-or-lower/
|
||||
package q374
|
||||
|
||||
func guess(num int) int { panic("stub") }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q380 implements a solution for https://leetcode.com/problems/insert-delete-getrandom-o1/
|
||||
package q380
|
||||
|
||||
import "math/rand"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q383 implements a solution for https://leetcode.com/problems/ransom-note/
|
||||
package q383
|
||||
|
||||
func canConstruct(ransomNote string, magazine string) bool {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q394 implements a solution for https://leetcode.com/problems/decode-string/
|
||||
package q394
|
||||
|
||||
import "strings"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q399 implements a solution for https://leetcode.com/problems/evaluate-division/
|
||||
package q399
|
||||
|
||||
func calcEquation(equations [][]string, values []float64, queries [][]string) []float64 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue