Skip to content

Commit 1f16f48

Browse files
committed
Update all solutions' changes in 2025-12-08.
1 parent d1897de commit 1f16f48

File tree

116 files changed

+3074
-290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+3074
-290
lines changed

en/1-1000/1-two-sum.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# 1. Two Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions
22

3+
> 🚀 **Level Up Your Developer Identity**
4+
>
5+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
6+
>
7+
> **The All-In-One Powerhouse for Your Career:**
8+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
9+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
10+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
11+
>
12+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
13+
14+
---
15+
316
Visit original link: [1. Two Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/1-two-sum) for a better experience!
417

518
LeetCode link: [1. Two Sum](https://leetcode.com/problems/two-sum), difficulty: **Easy**.
@@ -323,8 +336,20 @@ class Solution:
323336
// Welcome to create a PR to complete the code of this language, thanks!
324337
```
325338

326-
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [LeetCode.blog](https://leetcode.blog): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
339+
> 🚀 **Level Up Your Developer Identity**
340+
>
341+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
342+
>
343+
> **The All-In-One Powerhouse for Your Career:**
344+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
345+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
346+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
347+
>
348+
> [**Build Your Programmer Brand at Show.dev**](https://www.show.dev)
349+
350+
---
327351

328-
Original link: [1. Two Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/1-two-sum).
352+
Visit original link: [1. Two Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/1-two-sum) for a better experience!
329353

330354
GitHub repository: [leetcode-python-java](https://github.com/leetcode-python-java/leetcode-python-java).
355+

en/1-1000/125-valid-palindrome.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# 125. Valid Palindrome - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions
22

3+
> 🚀 **Level Up Your Developer Identity**
4+
>
5+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
6+
>
7+
> **The All-In-One Powerhouse for Your Career:**
8+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
9+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
10+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
11+
>
12+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
13+
14+
---
15+
316
Visit original link: [125. Valid Palindrome - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/125-valid-palindrome) for a better experience!
417

518
LeetCode link: [125. Valid Palindrome](https://leetcode.com/problems/valid-palindrome), difficulty: **Easy**.
@@ -115,8 +128,20 @@ class Solution {
115128
// Welcome to create a PR to complete the code of this language, thanks!
116129
```
117130

118-
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [LeetCode.blog](https://leetcode.blog): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
131+
> 🚀 **Level Up Your Developer Identity**
132+
>
133+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
134+
>
135+
> **The All-In-One Powerhouse for Your Career:**
136+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
137+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
138+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
139+
>
140+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
141+
142+
---
119143

120-
Original link: [125. Valid Palindrome - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/125-valid-palindrome).
144+
Visit original link: [125. Valid Palindrome - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/125-valid-palindrome) for a better experience!
121145

122146
GitHub repository: [leetcode-python-java](https://github.com/leetcode-python-java/leetcode-python-java).
147+

en/1-1000/13-roman-to-integer.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# 13. Roman to Integer - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions
22

3+
> 🚀 **Level Up Your Developer Identity**
4+
>
5+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
6+
>
7+
> **The All-In-One Powerhouse for Your Career:**
8+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
9+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
10+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
11+
>
12+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
13+
14+
---
15+
316
Visit original link: [13. Roman to Integer - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/13-roman-to-integer) for a better experience!
417

518
LeetCode link: [13. Roman to Integer](https://leetcode.com/problems/roman-to-integer), difficulty: **Easy**.
@@ -200,8 +213,20 @@ class Solution {
200213
// Welcome to create a PR to complete the code of this language, thanks!
201214
```
202215

203-
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [LeetCode.blog](https://leetcode.blog): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
216+
> 🚀 **Level Up Your Developer Identity**
217+
>
218+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
219+
>
220+
> **The All-In-One Powerhouse for Your Career:**
221+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
222+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
223+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
224+
>
225+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
226+
227+
---
204228

205-
Original link: [13. Roman to Integer - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/13-roman-to-integer).
229+
Visit original link: [13. Roman to Integer - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/13-roman-to-integer) for a better experience!
206230

207231
GitHub repository: [leetcode-python-java](https://github.com/leetcode-python-java/leetcode-python-java).
232+

en/1-1000/14-longest-common-prefix.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# 14. Longest Common Prefix - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions
22

3+
> 🚀 **Level Up Your Developer Identity**
4+
>
5+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
6+
>
7+
> **The All-In-One Powerhouse for Your Career:**
8+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
9+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
10+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
11+
>
12+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
13+
14+
---
15+
316
Visit original link: [14. Longest Common Prefix - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/14-longest-common-prefix) for a better experience!
417

518
LeetCode link: [14. Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix), difficulty: **Easy**.
@@ -117,8 +130,20 @@ class Solution {
117130
// Welcome to create a PR to complete the code of this language, thanks!
118131
```
119132

120-
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [LeetCode.blog](https://leetcode.blog): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
133+
> 🚀 **Level Up Your Developer Identity**
134+
>
135+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
136+
>
137+
> **The All-In-One Powerhouse for Your Career:**
138+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
139+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
140+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
141+
>
142+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
143+
144+
---
121145

122-
Original link: [14. Longest Common Prefix - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/14-longest-common-prefix).
146+
Visit original link: [14. Longest Common Prefix - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/14-longest-common-prefix) for a better experience!
123147

124148
GitHub repository: [leetcode-python-java](https://github.com/leetcode-python-java/leetcode-python-java).
149+

en/1-1000/15-3sum.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# 15. 3Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions
22

3+
> 🚀 **Level Up Your Developer Identity**
4+
>
5+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
6+
>
7+
> **The All-In-One Powerhouse for Your Career:**
8+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
9+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
10+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
11+
>
12+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
13+
14+
---
15+
316
Visit original link: [15. 3Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/15-3sum) for a better experience!
417

518
LeetCode link: [15. 3Sum](https://leetcode.com/problems/3sum), difficulty: **Medium**.
@@ -507,8 +520,20 @@ def duplicate_removed_nums(nums):
507520
// Welcome to create a PR to complete the code of this language, thanks!
508521
```
509522

510-
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [LeetCode.blog](https://leetcode.blog): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
523+
> 🚀 **Level Up Your Developer Identity**
524+
>
525+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
526+
>
527+
> **The All-In-One Powerhouse for Your Career:**
528+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
529+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
530+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
531+
>
532+
> [**Build Your Programmer Brand at Show.dev**](https://www.show.dev)
533+
534+
---
511535

512-
Original link: [15. 3Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/15-3sum).
536+
Visit original link: [15. 3Sum - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/15-3sum) for a better experience!
513537

514538
GitHub repository: [leetcode-python-java](https://github.com/leetcode-python-java/leetcode-python-java).
539+

en/1-1000/151-reverse-words-in-a-string.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# 151. Reverse Words in a String - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions
22

3+
> 🚀 **Level Up Your Developer Identity**
4+
>
5+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
6+
>
7+
> **The All-In-One Powerhouse for Your Career:**
8+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
9+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
10+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
11+
>
12+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
13+
14+
---
15+
316
Visit original link: [151. Reverse Words in a String - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/151-reverse-words-in-a-string) for a better experience!
417

518
LeetCode link: [151. Reverse Words in a String](https://leetcode.com/problems/reverse-words-in-a-string), difficulty: **Medium**.
@@ -181,8 +194,20 @@ end
181194
// Welcome to create a PR to complete the code of this language, thanks!
182195
```
183196

184-
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [LeetCode.blog](https://leetcode.blog): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
197+
> 🚀 **Level Up Your Developer Identity**
198+
>
199+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
200+
>
201+
> **The All-In-One Powerhouse for Your Career:**
202+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
203+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
204+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
205+
>
206+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
207+
208+
---
185209

186-
Original link: [151. Reverse Words in a String - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/151-reverse-words-in-a-string).
210+
Visit original link: [151. Reverse Words in a String - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/151-reverse-words-in-a-string) for a better experience!
187211

188212
GitHub repository: [leetcode-python-java](https://github.com/leetcode-python-java/leetcode-python-java).
213+

en/1-1000/160-intersection-of-two-linked-lists.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# 160. Intersection of Two Linked Lists - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions
22

3+
> 🚀 **Level Up Your Developer Identity**
4+
>
5+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
6+
>
7+
> **The All-In-One Powerhouse for Your Career:**
8+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
9+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
10+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
11+
>
12+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
13+
14+
---
15+
316
Visit original link: [160. Intersection of Two Linked Lists - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/160-intersection-of-two-linked-lists) for a better experience!
417

518
LeetCode link: [160. Intersection of Two Linked Lists](https://leetcode.com/problems/intersection-of-two-linked-lists), difficulty: **Easy**.
@@ -493,8 +506,20 @@ func getIntersectionNode(headA, headB *ListNode) *ListNode {
493506
// Welcome to create a PR to complete the code of this language, thanks!
494507
```
495508

496-
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [LeetCode.blog](https://leetcode.blog): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
509+
> 🚀 **Level Up Your Developer Identity**
510+
>
511+
> While mastering algorithms is key, showcasing your talent is what gets you hired. We recommend [**Show.dev**](https://www.show.dev) — the ultimate all-in-one personal branding platform designed specifically for programmers.
512+
>
513+
> **The All-In-One Powerhouse for Your Career:**
514+
> - 📄 **Professional Resume:** Create a dynamic, tech-focused resume that stands out to recruiters.
515+
> - 🎨 **Visual Portfolio:** Automatically aggregate your GitHub contributions and projects into a stunning showcase.
516+
> - ✍️ **Tech Blog:** Share your knowledge and build authority with a clean, distraction-free blogging space.
517+
>
518+
> [**Build Your Programmer Brand at Show.dev →**](https://www.show.dev)
519+
520+
---
497521

498-
Original link: [160. Intersection of Two Linked Lists - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/160-intersection-of-two-linked-lists).
522+
Visit original link: [160. Intersection of Two Linked Lists - LeetCode Python/Java/C++/JS/C#/Go/Ruby Solutions](https://leetcode.blog/en/leetcode/160-intersection-of-two-linked-lists) for a better experience!
499523

500524
GitHub repository: [leetcode-python-java](https://github.com/leetcode-python-java/leetcode-python-java).
525+

0 commit comments

Comments
 (0)