EX:
nums1 = [1, 3]
nums2 = [2]
The median is 2.0
nums2 = [2]
The median is 2.0
3 / \ 1 4 / 2 Output: [2,1,4,null,null,3] 2 / \ 1 4 / 3
/ \ / \
2 1 1 2
[1,2,1], [1,1,2]
Output: false
/ \ 1 4 / \ 3 6 Input: [5,1,4,null,null,3,6] Output: false Explanation: The root node's value is 5 but its right child's value is 4.
Output:
[
[1,null,3,2],
[3,2,null,1],
[3,1,null,null,2],
[2,1,3],
[1,null,2,null,3]
]
Explanation:
The above output corresponds to the 5 unique BST's shown below:
1 3 3 2 1
\ / / / \ \
3 2 1 1 3 2
/ / \ \
2 1 2 3Output: 5
Explanation: Given n = 3, there are a total of 5 unique BST's: 1 3 3 2 1 \ / / / \ \ 3 2 1 1 3 2 / / \ \ 2 1 2 3
1 \ 2 / 3 Output: [1,3,2]
Output: ["255.255.11.135", "255.255.111.35"] Output: 5->4->3->2->1->NULL'B' -> 2 ... 'Z' -> 26input:
Output: 3 Explanation: It could be decoded as "BZ" (2 26), "VF" (22 6), or "BBF" (2 2 6).
Output: [ [2], [1], [1,2,2], [2,2], [1,2], [] ]