forked fromneetcode-gh/leetcode
- Notifications
You must be signed in to change notification settings - Fork0
Commit355226b
authored
Merge pull requestneetcode-gh#2448 from KhizarShabir1/update_solution_of_reverse-linked-list
simplified code to only use two named pointers in reverese linked list (C++)1 file changed
+14
-14
lines changedLines changed: 14 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
| 22 | + | |
22 | 23 |
| |
23 |
| - | |
24 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 |
| - | |
| 37 | + | |
37 | 38 |
| |
38 |
| - | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
|
0 commit comments
Comments
(0)