Idiot-maker

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

随笔分类 -  LeetCode

上一页 1 2 3 4 5 6 7 ··· 10 下一页

摘要:https://leetcode.com/problems/minimum-window-substring/ Given a string S and a string T, find the minimum window in S which will contain all the chara 阅读全文
posted @ 2015-05-12 13:24 NickyYe 阅读(263) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/text-justification/Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and... 阅读全文
posted @ 2015-05-10 21:13 NickyYe 阅读(148) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/valid-number/Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>t... 阅读全文
posted @ 2015-05-10 19:45 NickyYe 阅读(179) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/sqrtx/Implementint sqrt(int x).Compute and return the square root ofx.解题思路:这道题的题意是,算出最接近sqrt(x)的整数,正好等于或者略小于。这里注意的是,不能mi... 阅读全文
posted @ 2015-05-09 21:28 NickyYe 阅读(175) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/wildcard-matching/Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Mat... 阅读全文
posted @ 2015-05-09 20:54 NickyYe 阅读(161) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/multiply-strings/Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The nu... 阅读全文
posted @ 2015-05-09 19:14 NickyYe 阅读(160) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/largest-number/Given a list of non negative integers, arrange them such that they form the largest number.For example, g... 阅读全文
posted @ 2015-05-06 20:18 NickyYe 阅读(190) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/largest-rectangle-in-histogram/ Given n non-negative integers representing the histogram's bar height where the width of 阅读全文
posted @ 2015-05-04 21:46 NickyYe 阅读(223) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/lru-cache/Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following ope... 阅读全文
posted @ 2015-04-27 15:13 NickyYe 阅读(599) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/house-robber/ You are a professional robber planning to rob houses along a street. Each house has a certain amount of mo 阅读全文
posted @ 2015-04-26 22:31 NickyYe 阅读(181) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/happy-number/Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following ... 阅读全文
posted @ 2015-04-26 21:47 NickyYe 阅读(184) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/remove-linked-list-elements/Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 -... 阅读全文
posted @ 2015-04-26 21:09 NickyYe 阅读(258) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/binary-tree-maximum-path-sum/Given a binary tree, find the maximum path sum.The path may start and end at any node in th... 阅读全文
posted @ 2015-04-26 20:56 NickyYe 阅读(161) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ Given inorder and postorder traversal of a tree, construct t 阅读全文
posted @ 2015-04-26 13:54 NickyYe 阅读(163) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/Given preorder and inorder traversal of a tree, construct the ... 阅读全文
posted @ 2015-04-25 22:00 NickyYe 阅读(1011) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/recover-binary-search-tree/ Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without 阅读全文
posted @ 2015-04-25 17:02 NickyYe 阅读(156) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/number-of-islands/ Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrou 阅读全文
posted @ 2015-04-24 11:17 NickyYe 阅读(209) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/binary-tree-right-side-view/Given a binary tree, imagine yourself standing on therightside of it, return the values of t... 阅读全文
posted @ 2015-04-22 16:48 NickyYe 阅读(186) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Given a binary tree, return the zigzag level order traversal of its nodes' val 阅读全文
posted @ 2015-04-22 14:54 NickyYe 阅读(158) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/surrounded-regions/ Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured 阅读全文
posted @ 2015-04-22 14:09 NickyYe 阅读(277) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 10 下一页