摘要: class Solution { public: /** * @param A: a list of integers * @return : return an integer */ int removeDuplicates(vector<int> &num) { if(num.empty()) 阅读全文
posted @ 2017-03-08 19:03 yekaiIT 阅读(262) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &price) { int re = 0; if(p 阅读全文
posted @ 2017-03-08 19:03 yekaiIT 阅读(266) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here int a = 1, b = 1, k = 0; 阅读全文
posted @ 2017-03-08 19:02 yekaiIT 阅读(396) 评论(0) 推荐(0) 编辑