摘要: [题目] Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. [题目 阅读全文
posted @ 2016-08-26 16:32 三刀 阅读(152) 评论(0) 推荐(0) 编辑
摘要: [题目] Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in 阅读全文
posted @ 2016-08-26 15:22 三刀 阅读(139) 评论(0) 推荐(0) 编辑
摘要: [题目] Determine whether an integer is a palindrome. Do this without extra space. [题目解析] 判断一个给定整数是否为回文数,回文数即121,11411这种正着和反着相同的数字,最小的回文数是0。实现思路可以比较直接,先对 阅读全文
posted @ 2016-08-26 12:09 三刀 阅读(110) 评论(0) 推荐(0) 编辑