摘要: class Solution {public: /** * @param n: An integer * @return: An integer */ int climbStairs(int n) { // write your code here int i,s[n]; if(n==0) retu 阅读全文
posted @ 2017-03-08 21:33 陌路站台 阅读(925) 评论(0) 推荐(0) 编辑
摘要: public class Solution { /** * @param A: a array of integers * @return : return an integer */ public int removeDuplicates(int[] nums) { // write your c 阅读全文
posted @ 2017-03-08 21:32 陌路站台 阅读(1743) 评论(0) 推荐(1) 编辑
摘要: class Solution {public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &prices) { // write your co 阅读全文
posted @ 2017-03-08 21:32 陌路站台 阅读(808) 评论(0) 推荐(0) 编辑