Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
862 commits
Select commit Hold shift + click to select a range
5844478
chore: auto compress images [skip ci] (#5020)
github-actions[bot] Feb 9, 2026
ad3e569
feat: add solutions for lc No.3833,3834 (#5021)
yanglbme Feb 9, 2026
40e6e43
feat: add solutions for lc No.3835,3836 (#5022)
yanglbme Feb 9, 2026
a6b7ec8
feat: add Rust solution for lc No.3719 (#5023)
yanglbme Feb 9, 2026
81ceef8
feat: add solutions for lc No.3721 (#5024)
yanglbme Feb 10, 2026
db2b627
feat: add solutions for lc No.3837 (#5025)
yanglbme Feb 11, 2026
f6dc815
feat: add Rust solution for lc No.3713 (#5026)
yanglbme Feb 12, 2026
a4e0921
feat: add Rust solution for lc No.3714 (#5027)
yanglbme Feb 12, 2026
d3e2987
docs: translate solutions and standardize heading format (#5028)
yanglbme Feb 12, 2026
3791c47
feat: add solutions for lc No.0799 (#5030)
yanglbme Feb 14, 2026
be29173
feat: add weekly contest 489 and biweekly contest 176 (#5031)
yanglbme Feb 15, 2026
8c25a97
feat: add solutions to lc problem: No.3842 (#5032)
yanglbme Feb 16, 2026
6f1afda
feat: add solutions for lc No.0190,3843 (#5033)
yanglbme Feb 16, 2026
699296c
feat: add solutions for lc No.0401 (#5034)
yanglbme Feb 17, 2026
ba0e84e
feat: add solutions for lc No.0693 (#5035)
yanglbme Feb 18, 2026
40e1802
feat: add solutions for lc No.0696 (#5037)
yanglbme Feb 19, 2026
9bdfe8b
feat: add TypeScript solution for lc No.0761 (#5038)
yanglbme Feb 20, 2026
ecacb66
feat: update lc problems (#5039)
yanglbme Feb 21, 2026
b440c2f
feat: add solutions for lc No.3846,3844 (#5040)
yanglbme Feb 21, 2026
3b990be
feat: add C# and JavaScript solutions for lc No.0868 (#5041)
yanglbme Feb 21, 2026
8a23e10
chore: auto update starcharts
idoocs Feb 22, 2026
6f39615
feat: add weekly contest 490 (#5042)
yanglbme Feb 23, 2026
6b4bc4e
feat: add solutions for lc No.3666 (#5043)
yanglbme Feb 23, 2026
f85dbb9
feat: add solutions for lc No.1022 (#5044)
yanglbme Feb 23, 2026
26f4347
feat: add solutions for lc No.3851 (#5045)
yanglbme Feb 24, 2026
469105a
feat: add Rust solution for lc No.3851 (#5046)
yanglbme Feb 24, 2026
663738f
feat: update lc problems (#5047)
yanglbme Feb 24, 2026
987f1d0
feat: update solutions for lc No.1356 (#5048)
yanglbme Feb 24, 2026
cc17920
feat: add solutions for lc No.1680 (#5049)
yanglbme Feb 25, 2026
828a71e
fix: update python solution for lc No.2899 (#5029)
soulrahulrk Feb 25, 2026
3c35e90
feat: add solutions for lc No.2899 (#5050)
yanglbme Feb 25, 2026
2602b80
feat: add solutions for lc No.1404 (#5051)
yanglbme Feb 25, 2026
cbdf232
feat: add solutions for lc No.3840 (#5052)
yanglbme Feb 26, 2026
d881de6
feat: add solutions for lc No.1980 (#5053)
yanglbme Feb 26, 2026
652e4a7
feat: add solutions for lc No.1545,3666 (#5054)
yanglbme Feb 26, 2026
38af912
feat: add solutions for lc No.3296 (#5055)
yanglbme Feb 27, 2026
f06c45d
feat: add solutions for lc No.1680 (#5056)
yanglbme Feb 27, 2026
279dc11
feat: add weekly contest 491 & biweekly contest 177 (#5057)
yanglbme Mar 1, 2026
f186cb5
feat: add solutions for lc No.3857~3859 (#5058)
yanglbme Mar 1, 2026
ec962fe
feat: add solutions for lc No.3855 (#5059)
yanglbme Mar 2, 2026
9b7a059
feat: add solutions for lc No.3860 (#5060)
yanglbme Mar 3, 2026
f390b32
feat: add solutions for lc No.1582,1583 (#5061)
yanglbme Mar 3, 2026
1c3980f
feat: add solutions for lc No.1758 (#5062)
yanglbme Mar 4, 2026
800543d
feat: add solutions for lc No.1415 (#5063)
yanglbme Mar 5, 2026
0226659
feat: add js solution for lc No.1784 (#5064)
yanglbme Mar 5, 2026
0e1c5e6
feat: add solutions for lc No.1888 (#5065)
yanglbme Mar 7, 2026
ffef7e8
feat: add solutions for lc No.3861 (#5066)
yanglbme Mar 8, 2026
cf78978
feat: add solutions for lc No.3862~3864 (#5067)
yanglbme Mar 8, 2026
ec3dbde
feat: add Rust solution for lc No.3129 (#5068)
yanglbme Mar 8, 2026
542c628
feat: add Rust solution for lc No.3130 (#5069)
yanglbme Mar 9, 2026
9983df7
feat: add solutions for lc No.3865 (#5070)
yanglbme Mar 9, 2026
7639df8
feat: add java solution for lc No.3845 (#5036)
balakumaran-ks Mar 10, 2026
2304474
feat: update lc problems (#5071)
yanglbme Mar 10, 2026
945c25c
fix: get all questions (#5072)
yanglbme Mar 10, 2026
910f74e
feat: add solutions for lc No.1009,1010 (#5073)
yanglbme Mar 10, 2026
83a8a90
feat: add solutions for lc No.1727 (#5075)
yanglbme Mar 10, 2026
aa3274e
feat: update lc problems (#5076)
yanglbme Mar 11, 2026
caab2cc
chore: auto compress images [skip ci] (#5077)
github-actions[bot] Mar 11, 2026
7bf3545
feat: add solutions for lc No.3600 (#5078)
yanglbme Mar 12, 2026
c5aeba0
feat: add Rust solution for lc No.3600
yanglbme Mar 12, 2026
def4977
feat: add solutions for lc No.3567
yanglbme Mar 12, 2026
a8b76f6
chore: auto update starcharts
idoocs Mar 12, 2026
9e26dc5
chore(deps): bump black from 24.3.0 to 26.3.1
dependabot[bot] Mar 12, 2026
2a49924
feat: add js solution for lc No.3296
yanglbme Mar 12, 2026
37e5ed9
refactor(lcof): simplify string joining in problem 45 Java solution
yanglbme Mar 12, 2026
a4dec26
feat: add solutions for lc No.2906
yanglbme Mar 12, 2026
c22298e
feat: add solutions for lc No.1417
yanglbme Mar 13, 2026
a673a50
feat: add solutions for lc No.1886
yanglbme Mar 14, 2026
091a18a
feat: add weekly contest 493 and biweekly contest 178
yanglbme Mar 15, 2026
918e254
feat: add Rust solution for lc No.1878
yanglbme Mar 16, 2026
d34338b
feat: add solutions for lc No.1728
yanglbme Mar 16, 2026
eb8b334
feat: add solutions for lc No.3873
yanglbme Mar 16, 2026
099fc88
feat: update lc problems
yanglbme Mar 16, 2026
888a6ba
feat: add Rust solution for lc No.3546,3643
yanglbme Mar 17, 2026
4e278cd
feat: add solutions for lc No.3069,3070 (#5093)
yanglbme Mar 17, 2026
05f58af
feat: add solutions for lc No.3874 (#5094)
yanglbme Mar 18, 2026
50a4c16
feat: add solutions for lc No.3795 (#5095)
yanglbme Mar 19, 2026
cc7a1d0
feat: add solutions for lc No.3872 (#5097)
yanglbme Mar 20, 2026
7a402b3
feat: add solutions for lc No.1886 (#5098)
yanglbme Mar 21, 2026
57274d7
feat: add solutions for lc No.3869 (#5099)
yanglbme Mar 22, 2026
e92e779
feat: add weekly contest 494 (#5100)
yanglbme Mar 22, 2026
77b9970
feat: add solutions for weekly contest 494 (#5101)
yanglbme Mar 22, 2026
0f23b2f
feat: add solutions for lc No.1594 (#5102)
yanglbme Mar 22, 2026
49912db
feat: add solutions for lc No.1595 (#5103)
yanglbme Mar 22, 2026
381c143
feat: add solutions for lc No.3877,3878 (#5104)
yanglbme Mar 23, 2026
618d997
feat: add solutions for lc No.3879 (#5105)
yanglbme Mar 23, 2026
2b1eed6
chore: auto compress images [skip ci] (#5106)
github-actions[bot] Mar 24, 2026
27cb7f2
feat: update lc problems (#5107)
yanglbme Mar 24, 2026
1e77ff2
feat: add solutions for lc No.3548 (#5108)
yanglbme Mar 25, 2026
b4b2940
feat: update lc problems (#5109)
yanglbme Mar 25, 2026
e32f055
chore: auto compress images [skip ci] (#5110)
github-actions[bot] Mar 25, 2026
b13ed85
feat: add rust solutions for lc No.2839,2840 (#5111)
yanglbme Mar 25, 2026
3937339
feat: add solutions for lc No.2751 (#5112)
yanglbme Mar 25, 2026
a807bc9
feat: add solutions for lc No.0874,0877 (#5113)
yanglbme Mar 26, 2026
ed503a6
chore(deps): bump requests from 2.32.4 to 2.33.0 (#5114)
dependabot[bot] Mar 26, 2026
24fbc69
feat: add solutions for lc No.2946~2948 (#5115)
yanglbme Mar 26, 2026
7698475
feat: update lc problems (#5116)
yanglbme Mar 27, 2026
5692785
feat: add solutions for lc No.0645,0647 (#5117)
yanglbme Mar 27, 2026
2155e1d
feat: add solutions for lc No.0648 (#5118)
yanglbme Mar 27, 2026
e09f1fe
feat: add solutions for lc No.2574 (#5120)
yanglbme Mar 28, 2026
1302cfc
feat: add biweekly contest 179 (#5121)
yanglbme Mar 29, 2026
3f84f36
feat: add weekly contest 495 (#5122)
yanglbme Mar 29, 2026
5454ad6
chore: auto compress images (#5123)
github-actions[bot] Mar 30, 2026
12df796
chore: auto compress images (#5124)
github-actions[bot] Mar 30, 2026
73d9a9b
chore: auto compress images (#5125)
github-actions[bot] Mar 30, 2026
464421f
feat: add solutions for lc No.3474 (#5126)
yanglbme Mar 31, 2026
f9a020e
feat: add Rust solution for lc No.2751 (#5127)
yanglbme Mar 31, 2026
e9cfab5
feat: add solutions for lc No.3888 (#5128)
yanglbme Apr 1, 2026
918ed38
feat: update solutions to lc problems: No.3661,3418 (#5129)
yanglbme Apr 3, 2026
3367aa8
feat: update solutions for lc No.0022 (#5132)
yanglbme Apr 4, 2026
8195052
feat: add solutions for lc No.2087 (#5133)
yanglbme Apr 4, 2026
88bcdb7
feat: add weekly contest 496 (#5134)
yanglbme Apr 5, 2026
47a4bd8
feat: add solutions for lc No.3890 (#5135)
yanglbme Apr 5, 2026
a9beba0
feat: add solutions for lc No.0874 (#5136)
yanglbme Apr 5, 2026
023ed13
feat: add solutions for lc No.3891 (#5137)
yanglbme Apr 6, 2026
5f64d98
feat: add C++ code for Walking Robot Simulation II (#5139)
arifshaikh0462 Apr 7, 2026
635421d
feat: add C++ code for Walking Robot Simulation II (#5140)
arifshaikh0462 Apr 7, 2026
1529bbf
feat: add solutions for lc No.2069 (#5141)
yanglbme Apr 7, 2026
a0a36a4
chore: auto update starcharts
idoocs Apr 8, 2026
6b4b653
feat: update lc problem (#5145)
yanglbme Apr 9, 2026
10e6dc5
feat: add solutions for lc No.3893 (#5147)
yanglbme Apr 10, 2026
3c6289b
feat: add Rust solution for lc No.3740 (#5148)
yanglbme Apr 10, 2026
5436f60
feat: add biweekly contest 180 (#5149)
yanglbme Apr 12, 2026
2981910
feat: add solutions for lc No.3897 (#5150)
yanglbme Apr 12, 2026
bd6e2c9
feat: add weekly contest 497 (#5151)
yanglbme Apr 12, 2026
3c140f2
chore: auto compress images (#5152)
github-actions[bot] Apr 12, 2026
86f0649
feat: add solutions for lc No.3900 (#5153)
yanglbme Apr 12, 2026
48c2dc8
feat: add solutions for lc No.3901 (#5154)
yanglbme Apr 12, 2026
cbf04a0
feat: add solutions for lc No.1851 (#5155)
yanglbme Apr 12, 2026
0adbd57
fix: update solutions for lc No.3901 (#5156)
yanglbme Apr 13, 2026
93c20ae
feat: update lc problems (#5157)
yanglbme Apr 13, 2026
58bf8ea
feat: update lc problems (#5158)
yanglbme Apr 13, 2026
c9e00f1
feat: add solutions for lc No.2463 (#5159)
yanglbme Apr 14, 2026
43d8cf8
feat: add solutions for lc No.3902 (#5160)
yanglbme Apr 15, 2026
0d48dc4
feat: update solutions for lc No.2515 (#5161)
yanglbme Apr 15, 2026
5828e00
feat: update lc problems (#5162)
yanglbme Apr 15, 2026
306eab1
feat: add Rust solution for lc No.3761 (#5163)
yanglbme Apr 16, 2026
a7c6351
feat: add cpp solution for lc No.3655 (#5144)
arifshaikh0462 Apr 16, 2026
919767e
feat: add python solution for lc No.3655 (#5143)
Web-Pro-Swasti-1 Apr 17, 2026
d831859
feat: add Rust solutions for lc No.2833,2834 (#5164)
yanglbme Apr 17, 2026
3911aed
feat: add weekly contest 498 (#5165)
yanglbme Apr 19, 2026
22ac2c2
chore: auto compress images [skip ci] (#5166)
github-actions[bot] Apr 19, 2026
616280b
chore: auto compress images (#5167)
github-actions[bot] Apr 19, 2026
e0be37f
feat: add solutions for lc No.2078 (#5168)
yanglbme Apr 20, 2026
fe39965
feat: add solutions for lc No.3907 (#5169)
yanglbme Apr 22, 2026
35a7040
feat: update solutions for lc No.2531 (#5170)
yanglbme Apr 22, 2026
3bfc96a
feat: add solutions for lc No.2615 (#5171)
yanglbme Apr 23, 2026
2897af4
feat: add solutions for lc No.3213 (#5172)
yanglbme Apr 23, 2026
3579948
feat: update lc problems (#5173)
yanglbme Apr 23, 2026
e1e1aec
feat: add solutions for lc No.2033 (#5174)
yanglbme Apr 23, 2026
ee5b9bd
feat: add solutions for lc No.2032 (#5175)
yanglbme Apr 23, 2026
5474f02
feat: add solutions for lc No.3464 (#5177)
yanglbme Apr 25, 2026
1d6cf95
feat: add biweekly contest 181 (#5178)
yanglbme Apr 26, 2026
6eefb8f
feat: add weekly contest 3914 (#5179)
yanglbme Apr 26, 2026
65561eb
feat: add solutions for lc No.3910 (#5180)
yanglbme Apr 27, 2026
ad35721
feat: add rust solution for lc No.2962 (#5181)
yanglbme Apr 28, 2026
857b1a4
chore: auto update starcharts
idoocs Apr 29, 2026
92ac34b
feat: add Rust solution for lc No.3660 (#5183)
yanglbme Apr 30, 2026
692b7b8
feat: add weekly contest 499 (#5184)
yanglbme May 3, 2026
8415a7e
feat: add solutions for lc No.3919 (#5185)
yanglbme May 3, 2026
0594502
feat: add solutions for lc No.0049 (#5186)
yanglbme May 4, 2026
bc572b4
fix: correct typos in solution file names (#5187)
yanglbme May 5, 2026
43f4d13
feat: add solutions for lc No.1861 (#5188)
yanglbme May 6, 2026
880a7bb
feat: add solutions for lc No.3629 (#5189)
yanglbme May 7, 2026
c4984df
feat: add rust solution for lc No.2770 (#5190)
yanglbme May 7, 2026
7833ad6
feat: add solutions for lc No.3120,3121 (#5191)
yanglbme May 8, 2026
2355646
feat: add solutions for lc No.2541 (#5192)
yanglbme May 8, 2026
ce9edb1
feat: add solutions for lc No.1914 (#5193)
yanglbme May 9, 2026
6d42378
feat: add solutions for lc No.1915 (#5194)
yanglbme May 9, 2026
be7598c
feat: add solutions for lc No.3043 (#5195)
yanglbme May 9, 2026
6a174d2
feat: add biweekly contest 182 (#5196)
yanglbme May 10, 2026
e96e819
chore: auto compress images (#5197)
github-actions[bot] May 11, 2026
359f451
chore: auto compress images (#5199)
github-actions[bot] May 11, 2026
35118a2
feat: add weekly contest 500 (#5200)
yanglbme May 11, 2026
bff23cf
chore: auto compress images (#5201)
github-actions[bot] May 11, 2026
ffad926
feat: add solution for 3915 (#5203)
qqpp13465 May 13, 2026
ad99cc0
feat: add solutions for lc No.3925 (#5205)
yanglbme May 14, 2026
5db351b
feat: add solutions for lc No.0153 (#5206)
yanglbme May 15, 2026
9e4f57a
feat: add solutions for lc No.0154 (#5207)
yanglbme May 15, 2026
73be709
feat: add solutions for lc No.3926 (#5208)
yanglbme May 16, 2026
cd680a4
feat: update lc problems (#5209)
yanglbme May 16, 2026
efa37ad
feat: add solutions for lc No.3930 (#5210)
yanglbme May 16, 2026
96ae783
feat: update solutions (#5211)
yanglbme May 18, 2026
da3bf30
feat: add solutions for lc No.3932 (#5212)
yanglbme May 18, 2026
cb29d2b
feat: add solutions for lc No.3935 (#5213)
yanglbme May 19, 2026
07e64a9
feat: add double stacks solution to lc problem: No.2454. (#5202)
StarsExpress May 19, 2026
2a0fd34
feat: add solutions to lc problem: No.3430. (#5204)
StarsExpress May 19, 2026
0ee90d3
feat: add prefix & suffix solutions to lc No.0768. (#5214)
StarsExpress May 20, 2026
b05530c
feat: add two pointers method to lc No.1793. (#5215)
StarsExpress May 20, 2026
449263e
feat: add solutions for lc No.2657 (#5216)
yanglbme May 20, 2026
66bcf15
feat: add rust solution to lc No.3093 (#5218)
yanglbme May 22, 2026
3515eb6
feat: add solutions to lc No.1752 (#5219)
yanglbme May 23, 2026
4f7bd51
feat: add CLAUDE.md and AGENTS.md for AI coding assistants (#5220)
yanglbme May 23, 2026
72870a9
feat: add biweekly contest 183 (#5221)
yanglbme May 24, 2026
9fa9101
chore: auto compress images (#5222)
github-actions[bot] May 24, 2026
a8cc312
feat: add solutions to lc No.3936,3937 (#5223)
yanglbme May 24, 2026
533cee2
chore: auto compress images (#5224)
github-actions[bot] May 24, 2026
7c79403
chore: auto compress images (#5231)
github-actions[bot] May 24, 2026
1f70d56
feat: add weekly contest 503 (#5230)
yanglbme May 24, 2026
b1d8547
feat: add rust solution for lc No.1871 (#5233)
yanglbme May 25, 2026
7f35c53
feat: add merge sort method for lc No.0315 (#5229)
StarsExpress May 25, 2026
cad0ca7
feat: add sorting + stack + binary search method for lc No.2736 (#5234)
StarsExpress May 28, 2026
e084e78
chore: auto update starcharts
idoocs May 29, 2026
c03ca39
feat: add weekly contest 504 (#5238)
yanglbme Jun 1, 2026
0bba58e
feat: add Python solution for question No.3934. (#5235)
StarsExpress Jun 4, 2026
680aeef
feat: add solutions to lc problem: No.3946 (#5239)
yanglbme Jun 4, 2026
cb07f54
feat: add new lc problems (#5242)
yanglbme Jun 7, 2026
6f2d37f
feat: add biweekly contest 184 (#5243)
yanglbme Jun 7, 2026
0a1b519
feat: add weekly contest 505 (#5244)
yanglbme Jun 7, 2026
8366a76
feat: add solutions to lc problem: No.3955 (#5245)
yanglbme Jun 8, 2026
105153b
feat: add solutions to lc problem: No.3614 (#5246)
yanglbme Jun 8, 2026
53880cb
feat: add BFS + sorting method for lc problem 0987 (#5248)
StarsExpress Jun 9, 2026
2c2fbe7
feat: add c solution to lc problem: No.3753 (#5249)
vremyavnikuda Jun 9, 2026
5b4ea68
feat: add solutions to lc problem: No.3691 (#5250)
yanglbme Jun 9, 2026
f60e9d3
feat: add solutions to lc problem: No.3958 (#5251)
yanglbme Jun 10, 2026
25a3f22
feat: add solutions to lc problem: No.3558 (#5252)
yanglbme Jun 11, 2026
08abc45
style: removed redundant HTML container in README for lc No.3934 (#5253)
StarsExpress Jun 14, 2026
3729d1a
feat: add weekly contest 506 (#5257)
yanglbme Jun 14, 2026
ca7fd88
feat: add solutions to lc problem: No.3959
yanglbme Jun 14, 2026
8d9766a
feat: add rust solution to lc problem: No.2095 (#5258)
yanglbme Jun 15, 2026
aed8200
feat: add solutions to lc problem: No.3960 (#5259)
yanglbme Jun 15, 2026
f0fa905
feat: add solutions to lc problem: No.3961 (#5260)
yanglbme Jun 15, 2026
df3eee7
chore: auto update starcharts
idoocs Jun 16, 2026
f295c98
feat: add new lc problems (#5261)
yanglbme Jun 21, 2026
aed1f64
feat: add solutions to lc problem: No.3963 (#5262)
yanglbme Jun 22, 2026
a2dc998
feat: add solutions to lc problem: No.3964 (#5263)
yanglbme Jun 22, 2026
81fe189
feat: add solutions to lc problem: No.3969 (#5264)
yanglbme Jun 22, 2026
38318bb
feat: add solutions to lc problem: No.3968 (#5265)
yanglbme Jun 22, 2026
88c452b
feat: add solutions to lc problem: No.3737 (#5271)
yanglbme Jun 25, 2026
40a977a
feat: add solutions to lc problem: No.3020 (#5272)
yanglbme Jun 27, 2026
549a3d3
feat: add solutions to lc problem: No.1846 (#5273)
yanglbme Jun 28, 2026
4aa9241
feat: add weekly contest 508 (#5274)
yanglbme Jun 28, 2026
14bce0b
chore: auto compress images [skip ci] (#5275)
github-actions[bot] Jun 28, 2026
ae14347
chore: auto compress images (#5276)
github-actions[bot] Jun 29, 2026
1bea62a
feat: add solutions to lc problem: No.3976 (#5277)
yanglbme Jun 29, 2026
ac3f445
feat: add solutions to lc problem: No.3977 (#5278)
yanglbme Jun 29, 2026
2c5a33f
feat: add solutions to lc problem: No.1358 (#5279)
yanglbme Jun 30, 2026
b2c095f
feat: add solutions to lc problem: No.1357 (#5280)
yanglbme Jun 30, 2026
4b9a945
feat: add solutions to lc problem: No.1361 (#5282)
yanglbme Jun 30, 2026
6b92085
feat: add solutions to lc problem: No.2812 (#5283)
yanglbme Jul 1, 2026
25d69ed
docs: sync lc problem READMEs for No.3950-3977 and add No.3967 (#5284)
yanglbme Jul 1, 2026
571dc32
docs: sync lc problem READMEs and update solution index (#5285)
yanglbme Jul 1, 2026
ca56011
feat: add solutions to lc problem: No.3286 (#5286)
yanglbme Jul 2, 2026
b3a336b
feat: add solutions to lc problem: No.3620 (#5287)
yanglbme Jul 3, 2026
6e373e8
feat: add solutions to lc problem: No.3965 (#5288)
yanglbme Jul 3, 2026
a750cdc
feat: update solutions for lc problem: No.2492 (#5293)
yanglbme Jul 4, 2026
fd3cba9
feat: add biweekly contest 186 (#5294)
yanglbme Jul 5, 2026
04e85d8
feat: add weekly contest 509 (#5295)
yanglbme Jul 5, 2026
afc8041
feat: add solutions to lc problem: No.3983 (#5296)
yanglbme Jul 5, 2026
2bd9c19
feat: add solutions to lc problem: No.2844 (#5299)
yanglbme Jul 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
125 changes: 125 additions & 0 deletions .agents/skills/git-commit/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
name: git-commit
description: 'Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping'
license: MIT
allowed-tools: Bash
---

# Git Commit with Conventional Commits

## Overview

Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to determine appropriate type, scope, and message.

## Conventional Commit Format

```
<type>[optional scope]: <description>

[optional body]

[optional footer(s)]
```

## Commit Types

| Type | Purpose |
| ---------- | ------------------------------ |
| `feat` | New feature |
| `fix` | Bug fix |
| `docs` | Documentation only |
| `style` | Formatting/style (no logic) |
| `refactor` | Code refactor (no feature/fix) |
| `perf` | Performance improvement |
| `test` | Add/update tests |
| `build` | Build system/dependencies |
| `ci` | CI/config changes |
| `chore` | Maintenance/misc |
| `revert` | Revert commit |

## Breaking Changes

```
# Exclamation mark after type/scope
feat!: remove deprecated endpoint

# BREAKING CHANGE footer
feat: allow config to extend other configs

BREAKING CHANGE: `extends` key behavior changed
```

## Workflow

### 1. Analyze Diff

```bash
# If files are staged, use staged diff
git diff --staged

# If nothing staged, use working tree diff
git diff

# Also check status
git status --porcelain
```

### 2. Stage Files (if needed)

If nothing is staged or you want to group changes differently:

```bash
# Stage specific files
git add path/to/file1 path/to/file2

# Stage by pattern
git add *.test.*
git add src/components/*

# Interactive staging
git add -p
```

**Never commit secrets** (.env, credentials.json, private keys).

### 3. Generate Commit Message

Analyze the diff to determine:

- **Type**: What kind of change is this?
- **Scope**: What area/module is affected?
- **Description**: One-line summary of what changed (present tense, imperative mood, <72 chars)

### 4. Execute Commit

```bash
# Single line
git commit -m "<type>[scope]: <description>"

# Multi-line with body/footer
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>

<optional body>

<optional footer>
EOF
)"
```

## Best Practices

- One logical change per commit
- Present tense: "add" not "added"
- Imperative mood: "fix bug" not "fixes bug"
- Reference issues: `Closes #123`, `Refs #456`
- Keep description under 72 characters
- **Always use English for commit messages.** Never use other languages.

## Git Safety Protocol

- NEVER update git config
- NEVER run destructive commands (--force, hard reset) without explicit request
- NEVER skip hooks (--no-verify) unless user asks
- NEVER force push to main/master
- If commit fails due to hooks, fix and create NEW commit (don't amend)
4 changes: 2 additions & 2 deletions .github/workflows/black-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- lcci/**
- basic/**

concurrency:
concurrency:
group: ${{github.workflow}} - ${{github.ref}}
cancel-in-progress: true

Expand All @@ -30,6 +30,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: jpetrucciani/black-check@24.2.0
- uses: jpetrucciani/black-check@master
with:
black_flags: '-S'
84 changes: 64 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,72 +15,116 @@ on:
- basic/**

concurrency:
group: ${{github.workflow}} - ${{github.ref}}
group: ${{ github.workflow }} - ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Checkout main branch
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Checkout docs branch
uses: actions/checkout@v4
with:
ref: docs
path: mkdocs
- run: |
mv -f mkdocs/* .
fetch-depth: 0

- name: Sync docs branch content
run: |
rsync -a --remove-source-files --exclude='.git' mkdocs/ ./
rm -rf mkdocs
mv solution/CONTEST_README.md docs/contest.md
mv solution/CONTEST_README_EN.md docs-en/contest.md

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git config --global user.name github-actions[bot]
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com

- uses: actions/setup-python@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Restore pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- uses: actions/cache@v4
- name: Restore mkdocs-material cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
key: mkdocs-material-${{ env.cache_id }}
restore-keys: |
mkdocs-material-

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 -m pip install "mkdocs-material[imaging]"
sudo apt-get install pngquant
- name: Set MKDOCS_API_KEYS environment variable
sudo apt-get install -y pngquant

- name: Set MKDOCS_API_KEYS
run: echo "MKDOCS_API_KEYS=${{ secrets.MKDOCS_API_KEYS }}" >> $GITHUB_ENV

- run: |
- name: Build site
run: |
python3 main.py
mkdocs build -f mkdocs.yml
mkdocs build -f mkdocs-en.yml

- name: Generate CNAME file
- name: Generate CNAME
run: echo "leetcode.doocs.org" > ./site/CNAME

- name: Upload artifact
- name: Commit committer cache to docs branch
if: github.ref == 'refs/heads/main'
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
CACHE_FILE=".git-committers-cache.json"
if [[ ! -f "$CACHE_FILE" ]]; then
echo "Cache file not found; skip commit."
exit 0
fi

echo "Cloning docs branch ..."
git clone --depth 1 --branch docs "https://x-access-token:${GH_TOKEN}@github.com/${GH_REPO}.git" docs-cache
cp "$CACHE_FILE" docs-cache/

cd docs-cache

git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

git add .git-committers-cache.json
git commit -m "chore: update committer cache [skip ci]" || echo "No changes to commit"
git push origin docs

- name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./site
path: site

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github_pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ concurrency:

jobs:
format:
# ---------------------------------------------------------
# SAFETY CHECK:
# Only run for PRs from the SAME repository.
# Fork PRs are skipped entirely to prevent RCE via pnpm install.
# ---------------------------------------------------------
if: ${{ github.event.pull_request.head.repo.fork == false }}
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -24,15 +30,19 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.25.0
- name: Install Dependencies
run: npm install
run: pnpm install
- name: Run prettier
run: |
git config --global core.quotepath off
changed_files=$(git diff --name-only "${{ github.event.pull_request.base.sha }}" | grep -E '\.js$|\.ts$|\.php$|\.sql$|\.md$' || true)
if [ -n "$changed_files" ]; then
echo "Running prettier on the changed files"
echo "$changed_files" | xargs -d '\n' npx prettier --write
echo "$changed_files" | xargs -d '\n' pnpm exec prettier --write
else
echo "No matching files to run prettier on."
fi
Expand Down
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,21 @@
.vscode
.temp
.vitepress
.cache
*.iml
__pycache__
/node_modules
/solution/result.json
package-lock.json
/solution/__pycache__
/solution/.env
.cache
!.cache/plugin/
!.cache/plugin/git-committers/
!.cache/plugin/git-committers/page-authors.json

# Claude
.claude/settings.local.json

# pnpm
pnpm-lock.yaml
.pnpm-store/
.pnpm-debug.log
Empty file removed .husky/_/husky.sh
Empty file.
5 changes: 2 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh

npx --no -- commitlint --edit $1
#!/usr/bin/env sh
pnpm exec commitlint --edit $1
5 changes: 2 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh

npx lint-staged --allow-empty $1
#!/usr/bin/env sh
pnpm exec lint-staged --allow-empty $1
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@CLAUDE.md
Loading