摘要: C++系列: https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb (The Cherno) 阅读全文
posted @ 2020-05-14 05:07 回到明天 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 拖延症太严重了,原本打算参加leetcode四月份的每日挑战,结果已经结束了。 五月份的直到今天才开始准备。 补充5/13: 刷了两道五月挑战题 1. First bad version: key: using binary search, issue: not familiar with the 阅读全文
posted @ 2020-05-14 05:03 回到明天 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOB 阅读全文
posted @ 2019-01-01 04:07 回到明天 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2019-01-01 03:57 回到明天 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the 阅读全文
posted @ 2018-12-31 06:06 回到明天 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middl 阅读全文
posted @ 2018-12-22 12:04 回到明天 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutati 阅读全文
posted @ 2018-10-09 21:35 回到明天 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Design a data structure that supports all following operations in average O(1) time. insert(val): Inserts an item val to the set if not already presen 阅读全文
posted @ 2018-09-08 02:31 回到明天 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat", 阅读全文
posted @ 2018-09-07 12:23 回到明天 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only 阅读全文
posted @ 2018-09-07 10:49 回到明天 阅读(79) 评论(0) 推荐(0) 编辑