菱纱梦

导航

上一页 1 ··· 3 4 5 6 7

2014年8月31日 #

Climbing Stairs <LeetCode>

摘要: You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb... 阅读全文

posted @ 2014-08-31 13:14 菱纱梦 阅读(115) 评论(0) 推荐(0) 编辑

Median of Two Sorted Arrays

摘要: 1 class Solution { 2 public: 3 double findMedianSortedArrays(int A[], int m, int B[], int n) { 4 vector v(m+n); 5 for(int i=0;i<m... 阅读全文

posted @ 2014-08-31 09:40 菱纱梦 阅读(143) 评论(0) 推荐(0) 编辑

2014年8月27日 #

Jump Game II <LeetCode>

摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文

posted @ 2014-08-27 23:54 菱纱梦 阅读(132) 评论(0) 推荐(0) 编辑

Permutations II <LeetCode>

摘要: 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 @ 2014-08-27 00:11 菱纱梦 阅读(172) 评论(0) 推荐(0) 编辑

2014年8月25日 #

Regular Expression Matching (LeetCode)

摘要: Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The... 阅读全文

posted @ 2014-08-25 14:39 菱纱梦 阅读(121) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7