Fork me on GitHub
摘要: class Solution { public int movesToMakeZigzag(int[] nums) { int temp1[] = new int[nums.length]; int temp2[] = new int[nums.length]; for (int i = 0; i 阅读全文
posted @ 2019-08-10 17:52 cznczai 阅读(203) 评论(0) 推荐(0) 编辑
摘要: class Node { final static int the_maxsize = 26; Node[] list = new Node[the_maxsize]; char data; boolean isEnd = false; //用isEnd 代替isSelf 节约空间 } class 阅读全文
posted @ 2019-08-10 17:01 cznczai 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 暴力 class Solution { public int lengthOfLongestSubstring(String s) { int the_max = 0; HashSet hs = new HashSet(); for (int i = 0; i hs = new HashSet(); 阅读全文
posted @ 2019-08-10 15:41 cznczai 阅读(84) 评论(0) 推荐(0) 编辑