摘要:
Two Pointer 141. Linked List Cycle 判断链表是否有环 Can you solve it using O(1) (i.e. constant) memory? "leetcode 141. Linked List Cycle" 142. Linked List Cyc 阅读全文
摘要:
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Given an array of integers nums and an integer limit, return the size 阅读全文
摘要:
Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree Given a binary tree where each path going from the root to any leaf fo 阅读全文
摘要:
First Unique Number You have a queue of integers, you need to retrieve the first unique integer in the queue. Implement the FirstUnique class: FirstUn 阅读全文
摘要:
letcode1143 Longest Common Subsequence Longest Common Subsequence Given two strings text1 and text2, return the length of their longest common subsequ 阅读全文
摘要:
Leetcode 560 Subarry Sum Equals K Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equ 阅读全文
摘要:
leetcode Leftmost Column with at Least a One (This problem is an interactive problem.) A binary matrix means that all elements are 0 or 1. For each in 阅读全文
摘要:
Leetcode 1254. Number of Closed Islands Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4 directionally connected group o 阅读全文
摘要:
Leetcode 200. Number of Islands Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and 阅读全文
摘要:
LeetCode 455. Assign Cookies Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one 阅读全文