LeetCode: 1305-All Elements in Two Binary Search Trees 解題紀錄
題目
Given two binary search treesRead More »LeetCode: 1305-All Elements in Two Binary Search Trees 解題紀錄root1
androot2
, return a list containing all the integers from both trees sorted in ascending order.