02 2017 档案
摘要:public class Solution { /** * @param s: The first string * @param b: The second string * @return true or false */ public boolean anagram(String s, String t) { // w...
阅读全文
摘要:// you can also use imports, for example: // import java.util.*; // you can write to stdout for debugging purposes, e.g. // System.out.println("this is a debug message"); class Solution { publi...
阅读全文
摘要:/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { ...
阅读全文
摘要:public int sumArray(int[] nums, int start, int end) { int i=0; int sum=0; for(i=start;i word0(String[] strings) { int i=0; Map wordMap = new HashMap(); while(i keyPosMap = new HashMap(); ...
阅读全文
摘要:http://codingbat.com/prob/p100369
阅读全文
摘要:http://codingbat.com/prob/p185204
阅读全文
摘要:http://codingbat.com/prob/p169605
阅读全文
摘要:http://codingbat.com/prob/p199368 public boolean groupSum6(int start, int[] nums, int target) { if( start >= nums.length){ return target==0; } if(nums
阅读全文
摘要:自带测试 http://codingbat.com/prob/p145416
阅读全文
摘要:import java.util.*; class Counter { } class Groundhog2 { int ghNumber; Groundhog2(int n) { ghNumber = n; } public int hashCode() { return ghNumber; } public boolean equals(Object o) {...
阅读全文
摘要:package com.alibaba.druid.bvt.sql.mysql; import java.util.List; import org.junit.Assert; import com.alibaba.druid.sql.MysqlTest; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.d...
阅读全文
浙公网安备 33010602011771号