You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/1-1000/1-two-sum.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/1-two-sum)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/1-two-sum) for a better experience!
2
2
3
3
# 1. Two Sum - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -20,7 +20,8 @@ You can return the answer in any order.
20
20
21
21
**Explanation**:
22
22
23
-
Because nums[0] + nums[1] == 9, we return [0, 1].
23
+
<p>Because nums[0] + nums[1] == 9, we return [0, 1].</p>
24
+
24
25
25
26
### [Example 2]
26
27
@@ -322,3 +323,6 @@ class Solution:
322
323
// Welcome to create a PR to complete the code of this language, thanks!
323
324
```
324
325
326
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
327
+
328
+
Original link: [leetcoder.net- LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/1-two-sum).
// Welcome to create a PR to complete the code of this language, thanks!
506
508
```
507
509
510
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
511
+
512
+
Original link: [leetcoder.net- LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/15-3sum).
Copy file name to clipboardExpand all lines: en/1-1000/160-intersection-of-two-linked-lists.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/160-intersection-of-two-linked-lists)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/160-intersection-of-two-linked-lists) for a better experience!
2
2
3
3
# 160. Intersection of Two Linked Lists - LeetCoder: Fucking Good LeetCode Solutions
// Welcome to create a PR to complete the code of this language, thanks!
494
494
```
495
495
496
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
497
+
498
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/160-intersection-of-two-linked-lists).
Copy file name to clipboardExpand all lines: en/1-1000/18-4sum.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/18-4sum)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/18-4sum) for a better experience!
2
2
3
3
# 18. 4Sum - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -370,3 +370,6 @@ public class Solution {
370
370
// Welcome to create a PR to complete the code of this language, thanks!
371
371
```
372
372
373
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
374
+
375
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/18-4sum).
Copy file name to clipboardExpand all lines: en/1-1000/19-remove-nth-node-from-end-of-list.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/19-remove-nth-node-from-end-of-list)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/19-remove-nth-node-from-end-of-list) for a better experience!
2
2
3
3
# 19. Remove Nth Node From End of List - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -382,3 +382,6 @@ end
382
382
// Welcome to create a PR to complete the code of this language, thanks!
383
383
```
384
384
385
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
386
+
387
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/19-remove-nth-node-from-end-of-list).
Copy file name to clipboardExpand all lines: en/1-1000/20-valid-parentheses.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/20-valid-parentheses)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/20-valid-parentheses) for a better experience!
2
2
3
3
# 20. Valid Parentheses - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -130,3 +130,6 @@ class Solution:
130
130
// Welcome to create a PR to complete the code of this language, thanks!
131
131
```
132
132
133
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
134
+
135
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/20-valid-parentheses).
Copy file name to clipboardExpand all lines: en/1-1000/202-happy-number.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/202-happy-number)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/202-happy-number) for a better experience!
2
2
3
3
# 202. Happy Number - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -24,10 +24,11 @@ Return `true` if `n` is *a happy number*, and `false` if not.
// Welcome to create a PR to complete the code of this language, thanks!
272
273
```
273
274
275
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
276
+
277
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/202-happy-number).
Copy file name to clipboardExpand all lines: en/1-1000/203-remove-linked-list-elements.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/203-remove-linked-list-elements)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/203-remove-linked-list-elements) for a better experience!
2
2
3
3
# 203. Remove Linked List Elements - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -266,3 +266,6 @@ end
266
266
// Welcome to create a PR to complete the code of this language, thanks!
267
267
```
268
268
269
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
270
+
271
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/203-remove-linked-list-elements).
Copy file name to clipboardExpand all lines: en/1-1000/206-reverse-linked-list.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/206-reverse-linked-list)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/206-reverse-linked-list) for a better experience!
2
2
3
3
# 206. Reverse Linked List - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -287,3 +287,6 @@ end
287
287
// Welcome to create a PR to complete the code of this language, thanks!
288
288
```
289
289
290
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
291
+
292
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/206-reverse-linked-list).
Copy file name to clipboardExpand all lines: en/1-1000/209-minimum-size-subarray-sum.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/209-minimum-size-subarray-sum)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/209-minimum-size-subarray-sum) for a better experience!
2
2
3
3
# 209. Minimum Size Subarray Sum - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -18,7 +18,8 @@ Given an array of positive integers `nums` and a positive integer `target`, retu
18
18
19
19
**Explanation**:
20
20
21
-
The subarray [4,3] has the minimal length under the problem constraint.
21
+
<p>The subarray [4,3] has the minimal length under the problem constraint.</p>
22
+
22
23
23
24
### [Example 2]
24
25
@@ -293,3 +294,6 @@ public:
293
294
// Welcome to create a PR to complete the code of this language, thanks!
294
295
```
295
296
297
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
298
+
299
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/209-minimum-size-subarray-sum).
Copy file name to clipboardExpand all lines: en/1-1000/24-swap-nodes-in-pairs.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/24-swap-nodes-in-pairs)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/24-swap-nodes-in-pairs) for a better experience!
2
2
3
3
# 24. Swap Nodes in Pairs - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -370,3 +370,6 @@ end
370
370
// Welcome to create a PR to complete the code of this language, thanks!
371
371
```
372
372
373
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
374
+
375
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/24-swap-nodes-in-pairs).
Copy file name to clipboardExpand all lines: en/1-1000/242-valid-anagram.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/242-valid-anagram)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/242-valid-anagram) for a better experience!
2
2
3
3
# 242. Valid Anagram - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -215,3 +215,6 @@ public:
215
215
// Welcome to create a PR to complete the code of this language, thanks!
216
216
```
217
217
218
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
219
+
220
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/242-valid-anagram).
Copy file name to clipboardExpand all lines: en/1-1000/27-remove-element.md
+11-6
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/27-remove-element)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/27-remove-element) for a better experience!
2
2
3
3
# 27. Remove Element - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -21,8 +21,9 @@ Consider the number of elements in `nums` which are not equal to `val` be `k`, t
21
21
22
22
**Explanation**:
23
23
24
-
Your function should return k = 2, with the first two elements of nums being 2.
25
-
It does not matter what you leave beyond the returned k (hence they are underscores).
24
+
<p>Your function should return k = 2, with the first two elements of nums being 2.<br>
25
+
It does not matter what you leave beyond the returned k (hence they are underscores).</p>
26
+
26
27
27
28
### [Example 2]
28
29
@@ -32,9 +33,10 @@ It does not matter what you leave beyond the returned k (hence they are undersco
32
33
33
34
**Explanation**:
34
35
35
-
Your function should return k = 5, with the first five elements of nums containing 0, 0, 1, 3, and 4.
36
-
Note that the five elements can be returned in any order.
37
-
It does not matter what you leave beyond the returned k (hence they are underscores).
36
+
<p>Your function should return k = 5, with the first five elements of nums containing 0, 0, 1, 3, and 4.<br>
37
+
Note that the five elements can be returned in any order.<br>
38
+
It does not matter what you leave beyond the returned k (hence they are underscores).</p>
39
+
38
40
39
41
### [Constraints]
40
42
@@ -426,3 +428,6 @@ end
426
428
// Welcome to create a PR to complete the code of this language, thanks!
427
429
```
428
430
431
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
432
+
433
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/27-remove-element).
Copy file name to clipboardExpand all lines: en/1-1000/28-find-the-index-of-the-first-occurrence-in-a-string.md
+9-4
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/28-find-the-index-of-the-first-occurrence-in-a-string)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/28-find-the-index-of-the-first-occurrence-in-a-string) for a better experience!
2
2
3
3
# 28. Find the Index of the First Occurrence in a String - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -16,8 +16,9 @@ Given two strings `needle` and `haystack`, return the **index** of the first occ
16
16
17
17
**Explanation**:
18
18
19
-
"sad" occurs at index 0 and 6.
20
-
The first occurrence is at index 0, so we return 0.
19
+
<p>"sad" occurs at index 0 and 6.<br>
20
+
The first occurrence is at index 0, so we return 0.</p>
21
+
21
22
22
23
### [Example 2]
23
24
@@ -27,7 +28,8 @@ The first occurrence is at index 0, so we return 0.
27
28
28
29
**Explanation**:
29
30
30
-
"leeto" did not occur in "leetcode", so we return -1.
31
+
<p>"leeto" did not occur in "leetcode", so we return -1.</p>
32
+
31
33
32
34
### [Constraints]
33
35
@@ -200,3 +202,6 @@ public class Solution {
200
202
// Welcome to create a PR to complete the code of this language, thanks!
201
203
```
202
204
205
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
206
+
207
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/28-find-the-index-of-the-first-occurrence-in-a-string).
Copy file name to clipboardExpand all lines: en/1-1000/303-range-sum-query-immutable.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/303-range-sum-query-immutable)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/303-range-sum-query-immutable) for a better experience!
2
2
3
3
# 303. Range Sum Query - Immutable - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -23,10 +23,11 @@ Implement the `NumArray` class:
23
23
24
24
**Explanation**:
25
25
26
-
NumArray numArray = new NumArray([-2, 0, 3, -5, 2, -1]);
// Welcome to create a PR to complete the code of this language, thanks!
232
233
```
233
234
235
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
236
+
237
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/303-range-sum-query-immutable).
Copy file name to clipboardExpand all lines: en/1-1000/344-reverse-string.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/344-reverse-string)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/344-reverse-string) for a better experience!
2
2
3
3
# 344. Reverse String - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -212,3 +212,6 @@ end
212
212
// Welcome to create a PR to complete the code of this language, thanks!
213
213
```
214
214
215
+
DearLeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
Copy file name to clipboardExpand all lines: en/1-1000/349-intersection-of-two-arrays.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/349-intersection-of-two-arrays)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/349-intersection-of-two-arrays) for a better experience!
2
2
3
3
# 349. Intersection of Two Arrays - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -187,3 +187,6 @@ end
187
187
// Welcome to create a PR to complete the code of this language, thanks!
188
188
```
189
189
190
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
191
+
192
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/349-intersection-of-two-arrays).
Copy file name to clipboardExpand all lines: en/1-1000/383-ransom-note.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/383-ransom-note)
1
+
Visit original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/383-ransom-note) for a better experience!
2
2
3
3
# 383. Ransom Note - LeetCoder: Fucking Good LeetCode Solutions
4
4
@@ -244,3 +244,6 @@ public:
244
244
// Welcome to create a PR to complete the code of this language, thanks!
245
245
```
246
246
247
+
Dear LeetCoders! For a better LeetCode problem-solving experience, please visit website [leetcoder.net](https://leetcoder.net): Dare to claim the best practices of LeetCode solutions! Will save you a lot of time!
248
+
249
+
Original link: [leetcoder.net - LeetCoder: Fucking Good LeetCode Solutions](https://leetcoder.net/en/leetcode/383-ransom-note).
0 commit comments