Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. ...
分类:
其他好文 时间:
2017-04-24 17:21:14
阅读次数:
144
传送门 Description You have a positive integer m and a non-negative integer s. Your task is to find the smallest and the largest of the numbers that have ...
分类:
其他好文 时间:
2017-04-22 20:47:52
阅读次数:
231
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There are at ...
分类:
其他好文 时间:
2017-04-22 15:46:51
阅读次数:
195
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. ...
分类:
移动开发 时间:
2017-04-21 18:48:56
阅读次数:
247
题目: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rain ...
分类:
移动开发 时间:
2017-04-17 22:12:15
阅读次数:
261
Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a ...
分类:
其他好文 时间:
2017-04-17 18:47:25
阅读次数:
145
题目: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e ...
分类:
其他好文 时间:
2017-04-16 15:14:39
阅读次数:
139
题目: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes co ...
分类:
其他好文 时间:
2017-04-16 15:01:49
阅读次数:
161
题目: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes co ...
分类:
其他好文 时间:
2017-04-15 13:37:06
阅读次数:
99
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:
其他好文 时间:
2017-04-10 14:52:30
阅读次数:
202