随笔分类 -  leetcode

摘要:Question Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 解题思路 当拿到这道题的时候,就在想为啥Accept率只有 阅读全文
posted @ 2017-03-04 00:44 清水汪汪 阅读(196) 评论(0) 推荐(1)
摘要:Question Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1 2 3 4, you should return the list as 2 1 4 3. Yo 阅读全文
posted @ 2017-02-26 17:19 清水汪汪 阅读(157) 评论(0) 推荐(1)
摘要:Question: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1 2 3 4 5, and n = 2. Aft 阅读全文
posted @ 2017-02-23 23:57 清水汪汪 阅读(159) 评论(0) 推荐(1)
摘要:Question 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 @ 2017-02-22 23:08 清水汪汪 阅读(116) 评论(0) 推荐(1)
摘要:LeetCode Valid Parentheses Question Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is va 阅读全文
posted @ 2017-02-21 16:48 清水汪汪 阅读(159) 评论(0) 推荐(1)
摘要:Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho 阅读全文
posted @ 2016-11-29 22:39 清水汪汪 阅读(231) 评论(0) 推荐(1)
摘要:2016 09 24,开始刷leetcode上的算法题,下面整理一下leetcode题目清单。 "Github leetcode" 1.基本数学 Two Sum Palindrome Number Container With Most Water (数学思想) "Increasing Triple 阅读全文
posted @ 2016-10-19 09:10 清水汪汪 阅读(508) 评论(0) 推荐(0)