MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / main

Function main

86. Partition List/Solution.cpp:44–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42};
43
44int main() {
45 Solution s;
46 ListNode a(1);
47 ListNode b(4);
48 ListNode c(3);
49 ListNode d(2);
50 ListNode e(5);
51 ListNode f(2);
52 a.next = &b;
53 b.next = &c;
54 c.next = &d;
55 d.next = &e;
56 e.next = &f;
57 auto x = s.partition(&a,3);
58 while (x != NULL) {
59 cout << x->val << endl;
60 x = x->next;
61 }
62 return 0;
63}

Callers

nothing calls this directly

Calls 1

partitionMethod · 0.45

Tested by

no test coverage detected