摘要: class Solution {public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here if(n==0) return 1; if(n<= 阅读全文
posted @ 2017-03-08 20:11 趙生雲 阅读(105) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &prices) { // write your co 阅读全文
posted @ 2017-03-08 20:10 趙生雲 阅读(116) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: /** * @param A: a list of integers * @return : return an integer */ int removeDuplicates(vector<int> &nums) { // write your c 阅读全文
posted @ 2017-03-08 20:09 趙生雲 阅读(82) 评论(0) 推荐(0) 编辑