chore: add package level comments

This commit is contained in:
Yiyang Kang 2026-02-27 12:55:48 +09:00
parent cc87c4b30c
commit ee1868a10e
Signed by: kkyy
SSH key fingerprint: SHA256:lJSbAzC3MvrSORdvIVK6h/3g+rVKJNzM7zq0MgA9WKY
303 changed files with 303 additions and 0 deletions

View file

@ -1,3 +1,4 @@
// Package q300 implements a solution for https://leetcode.com/problems/longest-increasing-subsequence/
package q300
func lengthOfLIS(nums []int) int {

View file

@ -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).

View file

@ -1,3 +1,4 @@
// Package q328 implements a solution for https://leetcode.com/problems/odd-even-linked-list/
package q328
type ListNode struct {

View file

@ -1,3 +1,4 @@
// Package q334 implements a solution for https://leetcode.com/problems/increasing-triplet-subsequence/
package q334
import "math"

View file

@ -1,3 +1,4 @@
// Package q338 implements a solution for https://leetcode.com/problems/counting-bits/
package q338
func countBits(n int) []int {

View file

@ -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 {

View file

@ -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"

View file

@ -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") }

View file

@ -1,3 +1,4 @@
// Package q380 implements a solution for https://leetcode.com/problems/insert-delete-getrandom-o1/
package q380
import "math/rand"

View file

@ -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 {

View file

@ -1,3 +1,4 @@
// Package q394 implements a solution for https://leetcode.com/problems/decode-string/
package q394
import "strings"

View file

@ -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 {