Idiot-maker

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

随笔分类 -  LeetCode

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

摘要:https://leetcode.com/problems/powx-n/ Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example 3: Note: -100. 阅读全文
posted @ 2015-04-21 16:24 NickyYe 阅读(751) 评论(1) 推荐(0)

摘要:https://leetcode.com/problems/decode-ways/ A message containing letters from A-Z is being decoded to numbers using the following mapping: Given an dec 阅读全文
posted @ 2015-04-18 23:42 NickyYe 阅读(203) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/unique-binary-search-trees-ii/Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n... 阅读全文
posted @ 2015-04-18 22:36 NickyYe 阅读(139) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/min-stack/ Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- 阅读全文
posted @ 2015-04-15 15:46 NickyYe 阅读(212) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/word-ladder-ii/Given two words (startandend), and a dictionary, find all shortest transformation sequence(s) fromstartto... 阅读全文
posted @ 2015-04-15 10:51 NickyYe 阅读(160) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/word-ladder/ Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from 阅读全文
posted @ 2015-04-14 15:43 NickyYe 阅读(189) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/sudoku-solver/Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the chara... 阅读全文
posted @ 2015-04-12 21:48 NickyYe 阅读(214) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of dist... 阅读全文
posted @ 2015-04-11 21:13 NickyYe 阅读(165) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/n-queens/Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each othe... 阅读全文
posted @ 2015-04-11 20:52 NickyYe 阅读(274) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/maximum-gap/ Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Tr 阅读全文
posted @ 2015-04-10 16:28 NickyYe 阅读(381) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/palindrome-partitioning-ii/ Given a string s, partition s such that every substring of the partition is a palindrome. Re 阅读全文
posted @ 2015-04-07 15:46 NickyYe 阅读(163) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/palindrome-partitioning/ Given a string s, partition s such that every substring of the partition is a palindrome. Retur 阅读全文
posted @ 2015-04-06 14:05 NickyYe 阅读(229) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/simplify-path/Given an absolute path for a file (Unix-style), simplify it.Given an absolute path for a file (Unix-style)... 阅读全文
posted @ 2015-04-05 23:00 NickyYe 阅读(223) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/longest-valid-parentheses/ Given a string containing just the characters '(' and ')', find the length of the longest val 阅读全文
posted @ 2015-04-05 20:07 NickyYe 阅读(184) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/permutations-ii/ Given a collection of numbers that might contain duplicates, return all possible unique permutations. F 阅读全文
posted @ 2015-04-03 19:38 NickyYe 阅读(226) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/insert-interval/ Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary) 阅读全文
posted @ 2015-04-02 20:29 NickyYe 阅读(138) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/merge-intervals/Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15... 阅读全文
posted @ 2015-04-02 16:54 NickyYe 阅读(271) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/first-missing-positive/Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]... 阅读全文
posted @ 2015-04-02 14:20 NickyYe 阅读(236) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/copy-list-with-random-pointer/A linked list is given such that each node contains an additional random pointer which cou... 阅读全文
posted @ 2015-03-31 21:10 NickyYe 阅读(212) 评论(0) 推荐(0)

摘要:https://leetcode.com/problems/regular-expression-matching/Implement regular expression matching with support for'.'and'*'.'.' Matches any single chara... 阅读全文
posted @ 2015-03-30 20:15 NickyYe 阅读(201) 评论(0) 推荐(0)

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