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. ...
分类:
其他好文 时间:
2016-10-26 07:21:22
阅读次数:
166
Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2. Note: 我的第一个想法就是选好两个字符串,然后模拟加法进位,然后用一个字符串接着,同时记住进位 ...
分类:
其他好文 时间:
2016-10-26 07:11:18
阅读次数:
198
Problem: 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 ...
分类:
其他好文 时间:
2016-10-23 07:48:07
阅读次数:
191
题目: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total ...
分类:
其他好文 时间:
2016-10-22 00:03:46
阅读次数:
224
1 Trapping Rain Water Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able ...
分类:
其他好文 时间:
2016-10-21 08:11:25
阅读次数:
283
题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin ...
分类:
其他好文 时间:
2016-10-20 12:02:28
阅读次数:
160
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num ...
分类:
编程语言 时间:
2016-10-20 00:14:38
阅读次数:
133
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:
编程语言 时间:
2016-10-19 02:33:38
阅读次数:
157
Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top ...
分类:
其他好文 时间:
2016-10-15 02:36:02
阅读次数:
109
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2016-10-14 07:23:26
阅读次数:
101