题目 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are ...
分类:
其他好文 时间:
2017-05-12 20:13:53
阅读次数:
200
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Input: 1 \ 3 / 2 O ...
分类:
其他好文 时间:
2017-05-10 20:31:13
阅读次数:
143
There is a square matrix n?×?n, consisting of non-negative integer numbers. You should find such a way on it that starts in the upper left cell of the ...
分类:
其他好文 时间:
2017-05-10 18:54:07
阅读次数:
203
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example Given num = 38. The process is like: 3 + ...
分类:
其他好文 时间:
2017-05-10 15:37:57
阅读次数:
132
Number Steps Time Limit: 1000ms Memory limit: 10000K 有疑问?点这里^_^ 题目描写叙述 Starting from point (0,0) on a plane, we have written all non-negative integers ...
分类:
其他好文 时间:
2017-05-09 09:36:51
阅读次数:
135
传送门 Description You are given an array consisting of n non-negative integers a1,?a2,?...,?an. You are going to destroy integers in the array one by on ...
分类:
其他好文 时间:
2017-05-09 00:49:03
阅读次数:
182
There is a square matrix n?×?n, consisting of non-negative integer numbers. You should find such a way on it that starts in the upper left cell of the ...
分类:
其他好文 时间:
2017-05-08 23:29:49
阅读次数:
411
题目: 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-05-08 00:28:06
阅读次数:
176
Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2-> ...
分类:
其他好文 时间:
2017-05-08 00:26:33
阅读次数:
152
题目: 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 pa ...
分类:
其他好文 时间:
2017-05-07 22:02:21
阅读次数:
188