摘要:
class Solution { public: /** * @param A: a list of integers * @return : return an integer */ int removeDuplicates(vector<int> &num) { if(num.empty()) 阅读全文
摘要:
class Solution { public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &price) { int re = 0; if(p 阅读全文
摘要:
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; 阅读全文