posted @ 2016-03-31 12:32 徐岩 阅读(146) 评论(0) 推荐(0)
摘要:
Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thi 阅读全文
摘要:
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below 阅读全文
posted @ 2016-03-31 10:55 徐岩 阅读(132) 评论(0) 推荐(0)
摘要:
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Example1: x = 123, return 321Example2: x = -123, return -32 阅读全文
posted @ 2016-03-31 10:23 徐岩 阅读(100) 评论(0) 推荐(0)
摘要:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo 阅读全文
posted @ 2016-03-30 14:45 徐岩 阅读(98) 评论(0) 推荐(0)
摘要:
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 阅读全文
posted @ 2016-03-30 14:00 徐岩 阅读(119) 评论(0) 推荐(0)
摘要:
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2016-03-29 22:52 徐岩 阅读(146) 评论(0) 推荐(0)
摘要:
preOrder 5 3 2 4 8 6 9 midOrder 2 3 4 5 6 8 9 postOrder 2 4 3 6 9 8 5 阅读全文
posted @ 2016-03-29 10:05 徐岩 阅读(140) 评论(0) 推荐(0)
摘要:
参考:http://www.cnblogs.com/rain-lei/p/3576796.html !!由前序和后序序列无法确定二叉树 preOrder 5 3 2 4 8 6 9 midOrder 2 3 4 5 6 8 9 postOrder 2 4 3 6 9 8 5 阅读全文
posted @ 2016-03-28 23:10 徐岩 阅读(152) 评论(0) 推荐(0)
摘要:
Solution 1 : (数据结构与算法分析 C++描述 第三版) 阅读全文
posted @ 2016-03-26 10:48 徐岩 阅读(175) 评论(0) 推荐(0)