mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-16 03:59:18 +08:00
Several bug fixes.
This commit is contained in:
@@ -12,7 +12,7 @@ class ListNode {
|
||||
ListNode(this.val, [this.next]);
|
||||
}
|
||||
|
||||
/* Generate a linked list with a vector */
|
||||
/* Generate a linked list with a list */
|
||||
ListNode? listToLinkedList(List<int> list) {
|
||||
ListNode dum = ListNode(0);
|
||||
ListNode? head = dum;
|
||||
|
||||
Reference in New Issue
Block a user