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 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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q1441 implements a solution for https://leetcode.com/problems/build-an-array-with-stack-operations/
|
||||
package q1441
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q1448 implements a solution for https://leetcode.com/problems/count-good-nodes-in-binary-tree/
|
||||
package q1448
|
||||
|
||||
import "math"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// Package q1458 implements a solution for https://leetcode.com/problems/max-dot-product-of-two-subsequences/
|
||||
package q1458
|
||||
|
||||
import "math"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue