- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 Expression Add Operators【282】
public class Solution { public List addOperators(String num, int target) { List list = new ArrayList(); if(num == null || num.length() == 0) return list; char ch[] = num.toChar
2015-09-29 21:23:04 446
原创 Perfect Squares【279】
public class Solution { public int numSquares(int n) { int arr[] = new int[n+1]; arr[1] = 1; for(int i=2 ;i<=n; i++){ int j=1; int min = 10
2015-09-28 15:24:14 442
原创 Move Zeroes【283】
public class Solution { public void moveZeroes(int[] nums) { for(int i=0;i<nums.length;i++){ if(nums[i] == 0){ for(int j=i;j<nums.length;j++){
2015-09-26 21:26:24 387
原创 Peeking Iterator【284】
// Java Iterator interface reference: // https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html class PeekingIterator implements Iterator { Integer front = null; Integer behind
2015-09-25 22:30:44 515
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人