2017年3月8日

摘要: public class Solution { /** * @param A: a array of integers * @return : return an integer */ public static int removeDuplicates(int[] nums) { int a = 阅读全文
posted @ 2017-03-08 21:49 yuejinxia 阅读(138) 评论(1) 推荐(0) 编辑
 
摘要: class Solution { public: /** * @param prices: Given an integer array * @return: Maximum profit */ int maxProfit(vector<int> &prices) { // write your c 阅读全文
posted @ 2017-03-08 21:48 yuejinxia 阅读(84) 评论(0) 推荐(0) 编辑
 
摘要: public class Solution { /** * @param n: An integer * @return: An integer */ public int climbStairs(int n) { // write your code here int a=0,b=1,sum=0; 阅读全文
posted @ 2017-03-08 21:47 yuejinxia 阅读(90) 评论(0) 推荐(0) 编辑