摘要: https://leetcode.com/problems/rotate-function/ public class Solution { public int maxRotateFunction(int[] A) { int all = 0; int sum = 0; int ret = Integer.MIN_VALUE; ... 阅读全文
posted @ 2016-09-17 22:55 blcblc 阅读(225) 评论(0) 推荐(0)
摘要: public class Solution { public int longestSubstring(String s, int k) { // Find count of each char HashMap mp = new HashMap(); Object intObj; for (int 阅读全文
posted @ 2016-09-17 18:52 blcblc 阅读(399) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/decode-string/ public class Solution { private String s; private int newPos; public String decodeString(String ins) { s = '.' + ins + ']'; ... 阅读全文
posted @ 2016-09-17 15:38 blcblc 阅读(219) 评论(0) 推荐(0)