2017年3月14日

删除排序数组中的重复数字1

摘要: System.out.println("删除数组中重复元素后数组的长度为:"+a); } public static int removeDuplicates(int[] nums) { int count=0; if (nums.length==0 ||nums.length==1) return 阅读全文

posted @ 2017-03-14 18:10 TYYD 阅读(220) 评论(0) 推荐(0) 编辑

爬楼梯

摘要: public class Solution { /** * @param n: An integer * @return: An integer */ public int climbStairs(int n) { // write your code here if(n==1) return 1; 阅读全文

posted @ 2017-03-14 18:08 TYYD 阅读(132) 评论(0) 推荐(0) 编辑

买卖股票的最佳时机

摘要: public class Solution { /** * @param prices: Given an integer array * @return: Maximum profit */ public int maxProfit(int[] prices) { // write your co 阅读全文

posted @ 2017-03-14 18:06 TYYD 阅读(90) 评论(0) 推荐(0) 编辑

删除排序数组中的重复数字

摘要: System.out.println("删除数组中重复元素后数组的长度为:"+a); } public static int removeDuplicates(int[] nums) { int count=0; if (nums.length==0 ||nums.length==1) return 阅读全文

posted @ 2017-03-14 18:00 TYYD 阅读(129) 评论(0) 推荐(0) 编辑

导航