随笔分类 -  【LeetCode-Java】

使用Java实现的LeetCode题解。
摘要:[3] Longest Substring Without Repeating Characters (2021-Jun-21) Given a string s, find the length of the longest substring without repeating characte 阅读全文
posted @ 2021-06-21 14:53 zhangwanying 阅读(58) 评论(0) 推荐(0)
摘要:Hash Table: Two Pointers: https://www.cnblogs.com/zhangwanying/p/14913352.html Binary Search: Array: String: DP: DFS: BFS: Tree: Binary Search Tree: B 阅读全文
posted @ 2021-06-21 14:32 zhangwanying 阅读(74) 评论(0) 推荐(0)
摘要:1. 如果返回值是 int[], 那么可以这么初始化: return new int[]{ele1, ele2,...}; 2. 如果需要返回Exception, we can use IllegalArgumentException. 阅读全文
posted @ 2021-06-16 12:55 zhangwanying 阅读(205) 评论(0) 推荐(0)