摘要: 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 阅读全文
posted @ 2020-05-05 16:32 qwfand 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-05-03 13:40 qwfand 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-30 20:09 qwfand 阅读(511) 评论(3) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-28 21:37 qwfand 阅读(366) 评论(0) 推荐(0) 编辑
摘要: letcode1143 Longest Common Subsequence Longest Common Subsequence Given two strings text1 and text2, return the length of their longest common subsequ 阅读全文
posted @ 2020-04-26 16:07 qwfand 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-22 18:43 qwfand 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-21 17:15 qwfand 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-17 21:28 qwfand 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-17 20:57 qwfand 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-15 15:32 qwfand 阅读(80) 评论(0) 推荐(0) 编辑