摘要: class Solution {public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here int dp1 = 1, dp2 = 2, dpW 阅读全文
posted @ 2017-03-08 20:24 DanielFour 阅读(86) 评论(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:22 DanielFour 阅读(95) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: /** * @param A: a list of integers * @return : return an integer */ int removeDuplicates(vector<int> &nums) { // write your co 阅读全文
posted @ 2017-03-08 20:21 DanielFour 阅读(78) 评论(0) 推荐(0) 编辑