摘要:
题目链接 https://leetcode cn.com/problems/sort colors/description/ 题目描述 给定一个包含红色、白色和蓝色,一共 n 个元素的数组,原地对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。 此题中,我们使用整数 0、 1 阅读全文
posted @ 2018-09-06 15:44
DCREN
阅读(347)
评论(0)
推荐(0)
摘要:
题目链接 https://leetcode cn.com/problems/search in rotated sorted array ii/description/ 题目描述 假设按照升序排序的数组在预先未知的某个点上进行了旋转。 ( 例如,数组 [0,0,1,2,2,5,6] 可能变为 [2, 阅读全文
posted @ 2018-09-06 15:29
DCREN
阅读(152)
评论(0)
推荐(0)
摘要:
题目链接 https://leetcode.com/problems/search in rotated sorted array/description/ 题目描述 Suppose an array sorted in ascending order is rotated at some pivo 阅读全文
posted @ 2018-09-06 15:21
DCREN
阅读(148)
评论(0)
推荐(0)
摘要:
题目链接 https://leetcode.com/problems/binary tree level order traversal ii/description/ 题目描述 Given a binary tree, return the bottom up level order traver 阅读全文
posted @ 2018-09-06 10:15
DCREN
阅读(241)
评论(0)
推荐(0)
摘要:
题目链接 https://leetcode.com/problems/average of levels in binary tree/description/ 题目描述 Given a non empty binary tree, return the average value of the n 阅读全文
posted @ 2018-09-06 10:00
DCREN
阅读(176)
评论(0)
推荐(0)
摘要:
题目链接 https://leetcode.com/problems/trim a binary search tree/description/ 题目描述 Given a binary search tree and the lowest and highest boundaries as L a 阅读全文
posted @ 2018-09-06 09:15
DCREN
阅读(188)
评论(0)
推荐(0)

浙公网安备 33010602011771号