01 2018 档案
摘要:原题链接在这里:https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii/description/ 题目: Given a binary tree, you need to find the length of
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/cut-off-trees-for-golf-event/ 题目: You are asked to cut off trees in a forest for a golf event. The forest is rep
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/boundary-of-binary-tree/description/ 题目: Given a binary tree, return the values of its boundary in anti-clockwis
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/partition-labels/description/ 题目: A string S of lowercase letters is given. We want to partition this string int
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/most-frequent-subtree-sum/description/ 题目: Given the root of a tree, you are asked to find the most frequent sub
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/serialize-and-deserialize-bst/description/ 题目: Serialization is the process of converting a data structure or ob
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/word-abbreviation/ 题目: Given an array of n distinct non-empty strings, you need to generate minimal possible abb
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/remove-k-digits/description/ 题目: Given a non-negative integer num represented as a string, remove k digits from
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/ternary-expression-parser/description/ 题目: Given a string representing arbitrarily nested ternary expressions, c
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/frog-jump/description/ 题目: A frog is crossing a river. The river is divided into x units and at each unit there
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/course-schedule-iii/ 题目: There are n different online courses numbered from 1 to n. Each course has some duratio
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/my-calendar-i/description/ 题目: Implement a MyCalendar class to store your events. A new event can be added if ad
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/permutation-in-string/description/ 题目: Given two strings s1 and s2, write a function to return true if s2 contai
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-permutation/description/ 题目: By now, you are given a secret signature consisting of character 'D' and 'I'.
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-atoms/description/ 题目: Given a chemical formula (given as a string), return the count of each atom. An
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/string-compression/ 题目: Given an array of characters, compress it in-place. The length after compression must al
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/daily-temperatures/ 题目: Given a list of daily temperatures, produce a list that, for each day in the input, tell
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/friend-circles/description/ 题目: There are N students in a class. Some of them are friends, while some are not. T
阅读全文