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... 阅读全文
posted @ 2017-02-21 20:29 友哥 阅读(361) 评论(0) 推荐(0)
摘要:// 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... 阅读全文
posted @ 2017-02-18 15:33 友哥 阅读(453) 评论(0) 推荐(0)
摘要:/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { ... 阅读全文
posted @ 2017-02-18 12:05 友哥 阅读(166) 评论(0) 推荐(0)
摘要: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(); ... 阅读全文
posted @ 2017-02-15 22:37 友哥 阅读(156) 评论(0) 推荐(0)
摘要:http://codingbat.com/prob/p159339 阅读全文
posted @ 2017-02-15 22:03 友哥 阅读(123) 评论(0) 推荐(0)
摘要:http://codingbat.com/prob/p134174 阅读全文
posted @ 2017-02-15 21:18 友哥 阅读(94) 评论(0) 推荐(0)
摘要:http://codingbat.com/prob/p191212 阅读全文
posted @ 2017-02-15 21:05 友哥 阅读(181) 评论(0) 推荐(0)
摘要:http://codingbat.com/prob/p100369 阅读全文
posted @ 2017-02-14 22:45 友哥 阅读(206) 评论(0) 推荐(0)
摘要:http://codingbat.com/prob/p185204 阅读全文
posted @ 2017-02-14 19:34 友哥 阅读(340) 评论(0) 推荐(0)
摘要:http://codingbat.com/prob/p169605 阅读全文
posted @ 2017-02-14 19:11 友哥 阅读(251) 评论(0) 推荐(0)
摘要:http://codingbat.com/prob/p199368 public boolean groupSum6(int start, int[] nums, int target) { if( start >= nums.length){ return target==0; } if(nums 阅读全文
posted @ 2017-02-14 18:50 友哥 阅读(225) 评论(0) 推荐(0)
摘要:自带测试 http://codingbat.com/prob/p145416 阅读全文
posted @ 2017-02-14 18:34 友哥 阅读(600) 评论(0) 推荐(0)
摘要:import java.util.*; class Counter { } class Groundhog2 { int ghNumber; Groundhog2(int n) { ghNumber = n; } public int hashCode() { return ghNumber; } public boolean equals(Object o) {... 阅读全文
posted @ 2017-02-12 19:54 友哥 阅读(246) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2017-02-06 19:02 友哥 阅读(3193) 评论(0) 推荐(0)
摘要:如题 阅读全文
posted @ 2017-02-02 21:21 友哥 阅读(174) 评论(0) 推荐(0)