题目: 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
Memory - illegal accesses:negative array index read 负的数组索引读取 This is only valid if arr is a pointer that points to the second element in an array or a ...
分类:
其他好文 时间:
2017-04-15 15:34:45
阅读次数:
279
题目: 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
题目: 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-10 09:53:20
阅读次数:
207
415. Add Strings Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 思路:由于一个字符与一个非负整数等价,所以直接对两 ...
分类:
其他好文 时间:
2017-04-09 22:09:26
阅读次数:
272
405. Convert a Number to Hexadecimal Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method ...
分类:
其他好文 时间:
2017-04-09 22:08:01
阅读次数:
269
恢复内容开始 Container with most water--LeetCode11题 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n ve ...
分类:
其他好文 时间:
2017-04-07 21:12:06
阅读次数:
308
原题 A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. T ...
分类:
其他好文 时间:
2017-04-07 15:53:46
阅读次数:
294
原题链接在这里:https://leetcode.com/problems/minimum-absolute-difference-in-bst/#/description 题目: Given a binary search tree with non-negative values, find t ...
分类:
其他好文 时间:
2017-04-07 09:43:26
阅读次数:
181