Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
11
using namespace std;
12
13
struct ListNode {
14
int val;
15
ListNode *next;
16
ListNode(int x) : val(x), next(NULL) {}
17
};
18
19
struct TreeNode {
20
int val;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected