MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / main

Function main

2181-merge-nodes-in-between-zeros.rs:51–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51fn main() {
52 let listnode_1 = Box::new(ListNode {
53 val: 0,
54 next: None
55 });
56 let listnode0 = Box::new(ListNode {
57 val: 3,
58 next: Some(listnode_1)
59 });
60 let listnode1 = Box::new(ListNode {
61 val: 0,
62 next: Some(listnode0)
63 });
64 let listnode2 = Box::new(ListNode {
65 val: 2,
66 next: Some(listnode1)
67 });
68 let listnode3 = Box::new(ListNode {
69 val: 4,
70 next: Some(listnode2)
71 });
72 let listnode4 = Box::new(ListNode {
73 val: 0,
74 next: Some(listnode3)
75 });
76 let listnode5 = Box::new(ListNode {
77 val: 1,
78 next: Some(listnode4)
79 });
80 let listnode6 = Box::new(ListNode {
81 val: 0,
82 next: Some(listnode5)
83 });
84 let head = Some(listnode6);
85 println!("{:?}", merge_nodes(head));
86}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected