- 博客(4)
- 收藏
- 关注
原创 算法课第五周 Gas Station
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to it
2017-03-26 21:56:35 685
原创 算法课 第四周 Find Bottom Left Tree Value
Given a binary tree, find the leftmost value in the last row of the tree.Example 1:Input: 2 / \ 1 3Output:1Example 2: Input: 1 / \ 2 3
2017-03-21 11:31:20 1030
原创 算法课第三周Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with keys less than the node’s key. The right
2017-03-12 16:34:11 436
原创 算法第二周
这周上课的内容主要是讲了分治算法 挑选的题目:在一个未排序的数组里面找到第K大的元素。Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example,Giv
2017-03-05 16:46:03 481
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人