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 阅读(205) 评论(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 阅读(190) 评论(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 阅读(230) 评论(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 阅读(255) 评论(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 阅读(147) 评论(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 阅读(148) 评论(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 阅读(217) 评论(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 阅读(158) 评论(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 阅读(179) 评论(0) 推荐(0) 编辑

导航