摘要: 只要算总共有多少5就可以 阅读全文
posted @ 2018-10-08 11:41 jasoncool1 阅读(60) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/string-to-integer-atoi/discuss/4672/JAVA-Easy-Version-To-Understand!!!!!!!!!! 用sum = sum*10 + 这位数字来计算 不能直接通过-Integer.MIN 阅读全文
posted @ 2018-10-08 03:37 jasoncool1 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1 class MyStack { 2 Queue queue; 3 4 /** Initialize your data structure here. */ 5 public MyStack() { 6 queue = new LinkedList(); 7 8 } 9 10 /** ... 阅读全文
posted @ 2018-10-08 01:52 jasoncool1 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 创一个root node, 不用什么值, TrieNode要有一个26到数组记录每个字母存不存在,再来一个isWord给每个node判断一下是不是一个word(单词最后一个node才是一个word) 阅读全文
posted @ 2018-10-08 01:22 jasoncool1 阅读(94) 评论(0) 推荐(0) 编辑