Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: Example 1: Example 2: ...
分类:
其他好文 时间:
2016-10-02 00:50:38
阅读次数:
144
[题目] Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit ...
分类:
其他好文 时间:
2016-09-29 17:39:01
阅读次数:
134
Balanced Number Problem Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specific ...
分类:
其他好文 时间:
2016-09-28 22:32:57
阅读次数:
218
275. To xor or not to xor 275. To xor or not to xor The sequence of non-negative integers A1, A2, ..., AN is given. You are to find some subsequence A ...
分类:
其他好文 时间:
2016-09-28 15:23:14
阅读次数:
149
question: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the proces ...
分类:
其他好文 时间:
2016-09-26 21:44:58
阅读次数:
191
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 endpo ...
分类:
其他好文 时间:
2016-09-26 00:50:10
阅读次数:
165
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 single ...
分类:
其他好文 时间:
2016-09-24 10:36:14
阅读次数:
144
问题: 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-09-22 21:26:16
阅读次数:
170
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 single ...
分类:
其他好文 时间:
2016-09-22 06:30:33
阅读次数:
111
Don't try so hard, the best things come when you least expect them. 不要着急,最好的总会在最不经意的时候出现。 Always turn a negative situation into a positive situation. ...
分类:
其他好文 时间:
2016-09-22 01:00:49
阅读次数:
178