
java
小王子和他的狐狸
学生
展开
-
LeetCode第131场周赛(JAVA语言)
class Solution { public String removeOuterParentheses(String S) { Stack<String> s = new Stack<String>(); String str = ""; for(int i=0;i<S.length();i++) { ...原创 2019-04-07 14:36:57 · 372 阅读 · 1 评论 -
61. 最长不含重复字符的子字符串
class Solution { public int longestSubstringWithoutDuplication(String s) { Queue<String> q = new LinkedList<>(); int maxLen = 0; for (int i = 0; i < s.length(); i++) { while (...原创 2019-05-06 14:25:45 · 125 阅读 · 0 评论