![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
木木甫
一个喜欢学习的学生
展开
-
leetcode3-Longest Substring Without Repeating Characters
class Solution { public int lengthOfLongestSubstring(String s) { if (s== null || s.length() == 0){ return 0; } int max = 0; int temp = 0; char ...原创 2018-10-14 12:04:13 · 118 阅读 · 0 评论 -
leetcode20--valid parentheses
class Solution { public boolean isValid(String s) { if (s == null || s.length() % 2 != 0) { return false; } Stack<Character> stack = new Stack<>()...原创 2018-10-14 12:06:47 · 143 阅读 · 0 评论