2016年2月7日

Pow(x, n)

摘要: Implement pow(x, n). class Solution { public: double myPow(double x, int n) { // Start typing your C/C++ solution below // DO NOT write int main() fun 阅读全文

posted @ 2016-02-07 18:02 walkwalkwalk 阅读(210) 评论(0) 推荐(0)

Permutations II

摘要: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following unique pe 阅读全文

posted @ 2016-02-07 17:44 walkwalkwalk 阅读(198) 评论(0) 推荐(0)

Permutations

摘要: Given a collection of distinct numbers, return all possible permutations. For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3 阅读全文

posted @ 2016-02-07 17:43 walkwalkwalk 阅读(242) 评论(0) 推荐(0)

First Missing Positive

摘要: Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s 阅读全文

posted @ 2016-02-07 15:05 walkwalkwalk 阅读(263) 评论(0) 推荐(0)

Combination Sum II

摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each num 阅读全文

posted @ 2016-02-07 15:03 walkwalkwalk 阅读(154) 评论(0) 推荐(0)

Combination Sum

摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeat 阅读全文

posted @ 2016-02-07 15:02 walkwalkwalk 阅读(156) 评论(0) 推荐(0)

Sudoku Solver

摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be 阅读全文

posted @ 2016-02-07 14:48 walkwalkwalk 阅读(224) 评论(0) 推荐(0)

Search Insert Position

摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文

posted @ 2016-02-07 12:09 walkwalkwalk 阅读(163) 评论(0) 推荐(0)

Search for a Range

摘要: Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the or 阅读全文

posted @ 2016-02-07 11:39 walkwalkwalk 阅读(188) 评论(0) 推荐(0)

导航