摘要: class Solution { public: /** * @param A: a list of integers * @return : return an integer */ int removeDuplicates(vector &nums) { // write your code here if(nums... 阅读全文
posted @ 2017-03-06 21:31 daifengjiao 阅读(165) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector &prices) { // write code here if(prices.... 阅读全文
posted @ 2017-03-06 21:24 daifengjiao 阅读(133) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here int step1=1; int step2=2;... 阅读全文
posted @ 2017-03-06 21:19 daifengjiao 阅读(97) 评论(0) 推荐(0) 编辑