Idiot-maker

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  LeetCode

上一页 1 ··· 4 5 6 7 8 9 10 下一页

摘要:https://oj.leetcode.com/problems/generate-parentheses/Given n pairs of parentheses, write a function to generate all combinations of well-formed paren... 阅读全文
posted @ 2015-02-20 21:11 NickyYe 阅读(274) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/valid-parentheses/ Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the in 阅读全文
posted @ 2015-02-15 19:40 NickyYe 阅读(288) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/ Given a digit string, return all possible letter combinations that the number 阅读全文
posted @ 2015-02-13 16:11 NickyYe 阅读(277) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/longest-common-prefix/Write a function to find the longest common prefix string amongst an array of strings.解题思路:这题属于... 阅读全文
posted @ 2015-02-13 13:21 NickyYe 阅读(208) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/palindrome-number/Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.So... 阅读全文
posted @ 2015-02-12 19:36 NickyYe 阅读(277) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/4sum/Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplet... 阅读全文
posted @ 2015-02-11 22:49 NickyYe 阅读(252) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/3sum-closest/Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, targe... 阅读全文
posted @ 2015-02-10 20:51 NickyYe 阅读(161) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/3sum/Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array w... 阅读全文
posted @ 2015-02-10 16:57 NickyYe 阅读(415) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/rotate-list/Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->... 阅读全文
posted @ 2015-02-09 15:41 NickyYe 阅读(184) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/implement-strstr/Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle ... 阅读全文
posted @ 2015-02-08 22:12 NickyYe 阅读(173) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/valid-palindrome/Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignori... 阅读全文
posted @ 2015-02-08 20:55 NickyYe 阅读(233) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/partition-list/Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater... 阅读全文
posted @ 2015-02-04 22:03 NickyYe 阅读(189) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/Given a linked list, remove thenthnode from the end of list and return its head.For ... 阅读全文
posted @ 2015-02-04 20:03 NickyYe 阅读(169) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array-ii/Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?... 阅读全文
posted @ 2015-02-04 19:06 NickyYe 阅读(190) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/linked-list-cycle-ii/Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Fo... 阅读全文
posted @ 2015-02-03 21:48 NickyYe 阅读(174) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/Given a sorted array, remove the duplicates in place such that each element appea... 阅读全文
posted @ 2015-02-03 20:51 NickyYe 阅读(174) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/sort-colors/Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are a... 阅读全文
posted @ 2015-02-03 20:25 NickyYe 阅读(180) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/container-with-most-water/ Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinat 阅读全文
posted @ 2015-02-03 19:25 NickyYe 阅读(174) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/remove-element/Given an array and a value, remove all instances of that value in place and return the new length.The ... 阅读全文
posted @ 2015-02-02 23:00 NickyYe 阅读(207) 评论(0) 推荐(0)

摘要:https://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->... 阅读全文
posted @ 2015-02-02 21:33 NickyYe 阅读(227) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 下一页