摘要:
public class Solution { public int NumberOf1Between1AndN_Solution(int n) { if(n==0){ return 0; } int count=0; for(int i = 1;i<=n;i++){ ... 阅读全文
posted @ 2019-05-15 20:52
紫色的雪
阅读(338)
评论(0)
推荐(0)
摘要:
public class Solution { public int FindGreatestSumOfSubArray(int[] array) { int sum=0; int res=array[0]; for (int i=0;ires){ res=sum; } ... 阅读全文
posted @ 2019-05-15 20:18
紫色的雪
阅读(555)
评论(0)
推荐(0)
摘要:
import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Solution { public ArrayList GetLeastNumbers_Solution(int [] input, int k) { List list = new A... 阅读全文
posted @ 2019-05-15 19:52
紫色的雪
阅读(1081)
评论(0)
推荐(0)
摘要:
import java.util.HashMap; import java.util.Map; public class Solution { public int MoreThanHalfNum_Solution(int [] array) { if(array.length==0){ return 0; } Ma... 阅读全文
posted @ 2019-05-15 19:30
紫色的雪
阅读(641)
评论(0)
推荐(0)

浙公网安备 33010602011771号