leetcode
ic_tv
这个作者很懒,什么都没留下…
展开
-
1,Two sum (Hashtable Array)
/*Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2015-09-26 18:12:31 · 474 阅读 · 0 评论 -
2,Add Two Number (LinkList Math)
2,Add Two Number (LinkList Math)/* 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 digit. Add t原创 2015-09-26 18:14:37 · 461 阅读 · 0 评论 -
7,Reverse Integer
/* Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 */ #include #define INT_MAX 2147483647l #define INT_MIN -2147483648l int reverse(int x原创 2015-10-02 12:44:26 · 395 阅读 · 0 评论