IncredibleThings

导航

上一页 1 2 3 4 5 6 7 8 ··· 28 下一页

2021年2月9日 #

LeetCode - Find Largest Value in Each Tree Row

摘要: Given the root of a binary tree, return an array of the largest value in each row of the tree (0-indexed). Example 1: Input: root = [1,3,2,5,3,null,9] 阅读全文

posted @ 2021-02-09 14:01 IncredibleThings 阅读(46) 评论(0) 推荐(0) 编辑

LeetCode - Find Bottom Left Tree Value

摘要: Given the root of a binary tree, return the leftmost value in the last row of the tree. Example 1: Input: root = [2,1,3] Output: 1 Example 2: Input: r 阅读全文

posted @ 2021-02-09 13:37 IncredibleThings 阅读(66) 评论(0) 推荐(0) 编辑

LeetCode - Lowest Common Ancestor of Deepest Leaves

摘要: Given the root of a binary tree, return the lowest common ancestor of its deepest leaves. Recall that: The node of a binary tree is a leaf if and only 阅读全文

posted @ 2021-02-09 09:53 IncredibleThings 阅读(38) 评论(0) 推荐(0) 编辑

2021年2月8日 #

LeetCode - Minimum Remove to Make Valid Parentheses

摘要: Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position 阅读全文

posted @ 2021-02-08 15:06 IncredibleThings 阅读(49) 评论(0) 推荐(0) 编辑

2021年2月7日 #

LeetCode - Longest Uncommon Subsequence II

摘要: Given a list of strings, you need to find the longest uncommon subsequence among them. The longest uncommon subsequence is defined as the longest subs 阅读全文

posted @ 2021-02-07 15:57 IncredibleThings 阅读(33) 评论(0) 推荐(0) 编辑

LeetCode - Longest Uncommon Subsequence I

摘要: Given two strings a and b, find the length of the longest uncommon subsequence between them. A subsequence of a string s is a string that can be obtai 阅读全文

posted @ 2021-02-07 04:00 IncredibleThings 阅读(22) 评论(0) 推荐(0) 编辑

2021年2月6日 #

LeetCode - Detect Capital

摘要: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文

posted @ 2021-02-06 15:12 IncredibleThings 阅读(23) 评论(0) 推荐(0) 编辑

Leetcode - Gas Station

摘要: There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i]. You have a car with an unlimited gas tank and i 阅读全文

posted @ 2021-02-06 14:29 IncredibleThings 阅读(80) 评论(0) 推荐(0) 编辑

LeetCode - Surrounded Regions

摘要: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in 阅读全文

posted @ 2021-02-06 06:43 IncredibleThings 阅读(56) 评论(0) 推荐(0) 编辑

2020年10月14日 #

LeetCode - Construct Binary Tree from Inorder and Postorder Traversal

摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. For example 阅读全文

posted @ 2020-10-14 12:47 IncredibleThings 阅读(87) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 28 下一页