mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-28 18:02:46 +08:00
Reverts #2034, #2035, #2036 and #2037. The work will return in a single
reviewed PR that is completed before it merges. The tree equals 8c96e2f30
(#2033).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b113cb425a
commit
ded7ddc635
@@ -6,16 +6,14 @@
|
||||
|
||||
package utils;
|
||||
|
||||
// [region]{list_node}
|
||||
/* Узел связного списка */
|
||||
public class ListNode {
|
||||
public int val; // Значение узла
|
||||
public ListNode next; // Ссылка на следующий узел
|
||||
public int val;
|
||||
public ListNode next;
|
||||
|
||||
public ListNode(int x) {
|
||||
val = x;
|
||||
}
|
||||
// [endregion]{list_node}
|
||||
|
||||
/* Десериализовать список в связный список */
|
||||
public static ListNode arrToLinkedList(int[] arr) {
|
||||
@@ -27,6 +25,4 @@ public class ListNode {
|
||||
}
|
||||
return dum.next;
|
||||
}
|
||||
// [region]{list_node_end}
|
||||
}
|
||||
// [endregion]{list_node_end}
|
||||
|
||||
Reference in New Issue
Block a user