菱纱梦

导航

随笔分类 -  LeetCode

上一页 1 2 3

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 菱纱梦 阅读(121) 评论(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 菱纱梦 阅读(148) 评论(0) 推荐(0)

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 菱纱梦 阅读(154) 评论(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 菱纱梦 阅读(179) 评论(0) 推荐(0)

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 菱纱梦 阅读(128) 评论(0) 推荐(0)

上一页 1 2 3