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 q1404 implements a solution for https://leetcode.com/problems/number-of-steps-to-reduce-a-number-in-binary-representation-to-one/
package q1404
func numSteps(s string) int {

View file

@ -1,3 +1,4 @@
// Package q1411 implements a solution for https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid/
package q1411
type Color uint8

View file

@ -1,3 +1,4 @@
// Package q1431 implements a solution for https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/
package q1431
import "slices"

View file

@ -1,3 +1,4 @@
// Package q1437 implements a solution for https://leetcode.com/problems/check-if-all-1s-are-at-least-length-k-places-away/
package q1437
func kLengthApart(nums []int, k int) bool {

View file

@ -1,3 +1,4 @@
// Package q1441 implements a solution for https://leetcode.com/problems/build-an-array-with-stack-operations/
package q1441
const (

View file

@ -1,3 +1,4 @@
// Package q1448 implements a solution for https://leetcode.com/problems/count-good-nodes-in-binary-tree/
package q1448
import "math"

View file

@ -1,3 +1,4 @@
// Package q1456 implements a solution for https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/
package q1456
func isVowel(b byte) bool {

View file

@ -1,3 +1,4 @@
// Package q1458 implements a solution for https://leetcode.com/problems/max-dot-product-of-two-subsequences/
package q1458
import "math"

View file

@ -1,3 +1,4 @@
// Package q1466 implements a solution for https://leetcode.com/problems/reorder-routes-to-make-all-paths-lead-to-the-city-zero/
package q1466
import "math"

View file

@ -1,3 +1,4 @@
// Package q1470 implements a solution for https://leetcode.com/problems/shuffle-the-array/
package q1470
func shuffle(nums []int, n int) []int {

View file

@ -1,3 +1,4 @@
// Package q1475 implements a solution for https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop/
package q1475
func finalPrices(prices []int) []int {

View file

@ -1,3 +1,4 @@
// Package q1493 implements a solution for https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element/
package q1493
func longestSubarray(nums []int) int {