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

Class ListNode

109. Convert Sorted List to Binary Search Tree/Solution.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace std;
12
13struct ListNode {
14 int val;
15 ListNode *next;
16 ListNode(int x) : val(x), next(NULL) {}
17};
18
19struct TreeNode {
20 int val;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected