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 q1004 implements a solution for https://leetcode.com/problems/max-consecutive-ones-iii/
package q1004
func longestOnes(nums []int, k int) int {

View file

@ -1,3 +1,4 @@
// Package q1018 implements a solution for https://leetcode.com/problems/binary-prefix-divisible-by-5/
package q1018
func prefixesDivBy5(nums []int) []bool {

View file

@ -1,3 +1,4 @@
// Package q1022 implements a solution for https://leetcode.com/problems/sum-of-root-to-leaf-binary-numbers/
package q1022
type TreeNode struct {

View file

@ -1,3 +1,4 @@
// Package q1041 implements a solution for https://leetcode.com/problems/robot-bounded-in-circle/
package q1041
type Dir int8

View file

@ -1,3 +1,4 @@
// Package q1046 implements a solution for https://leetcode.com/problems/last-stone-weight/
package q1046
import "container/heap"

View file

@ -1,3 +1,4 @@
// Package q1071 implements a solution for https://leetcode.com/problems/greatest-common-divisor-of-strings/
package q1071
func isRepeatOf(segment, str string) bool {