LeetCode 109. Convert Sorted List to Binary Search Tree(链表到二叉搜索树)
原题网址:https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
方法:使用慢指针
原创
2016-05-24 00:12:46 ·
603 阅读 ·
0 评论