摘要:
Every valid email consists of a local name and a domain name, separated by the '@' sign. Besides lowercase letters, the email may contain one or more 阅读全文
阅读排行榜
[LeetCode] 56. Merge Intervals_Medium Tag: sort
2021-07-29 06:43 by Johnson_强生仔仔, 30 阅读, 收藏,
摘要:
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals 阅读全文
[LeetCode] 766. Toeplitz Matrix_Easy tag: array
2021-08-22 02:34 by Johnson_强生仔仔, 29 阅读, 收藏,
摘要:
Given an m x n matrix, return true if the matrix is Toeplitz. Otherwise, return false. A matrix is Toeplitz if every diagonal from top-left to bottom- 阅读全文
[LeetCode] 259. 3Sum Smaller_Medium tag: Two pointers
2021-08-22 09:22 by Johnson_强生仔仔, 28 阅读, 收藏,
摘要:
Given an array of n integers nums and an integer target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition 阅读全文
[LeetCode] 222. Count Complete Tree Nodes_Medium tag: Binary search
2021-08-18 08:57 by Johnson_强生仔仔, 28 阅读, 收藏,
摘要:
Ideas: 1. T: O(n), S: O(lgn), depth of the tree # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=No 阅读全文
浙公网安备 33010602011771号