mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 06:26:08 +00:00
Add missing Dart codes and fix some errors (#689)
* Add missing Dart codes and fix some errors * Update array_binary_tree.dart --------- Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -4,19 +4,12 @@
|
||||
* Author: Jefferson (JeffersonHuang77@gmail.com)
|
||||
*/
|
||||
|
||||
/**
|
||||
* Definition for a singly-linked list node
|
||||
*/
|
||||
/* Definition for a singly-linked list node */
|
||||
class ListNode {
|
||||
int val;
|
||||
ListNode? next;
|
||||
|
||||
ListNode(this.val, [this.next]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ListNode{val: $val, next: $next}';
|
||||
}
|
||||
}
|
||||
|
||||
/* Generate a linked list with a vector */
|
||||
|
||||
Reference in New Issue
Block a user