Loading

上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: Given two binary search trees root1 and root2, return a list containing all the integers from both trees sorted in ascending order. Example 1: Input: 阅读全文
posted @ 2022-01-27 13:49 aalanwyr 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers arr, return true if and only if it is a valid mountain array. Recall that arr is a mountain array if and only if: arr.lengt 阅读全文
posted @ 2022-01-25 22:10 aalanwyr 阅读(43) 评论(0) 推荐(0) 编辑
摘要: We define the usage of capitals in a word to be right when one of the following cases holds: All letters in this word are capitals, like "USA". All le 阅读全文
posted @ 2022-01-24 12:55 aalanwyr 阅读(34) 评论(0) 推荐(0) 编辑
摘要: An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of all the integers 阅读全文
posted @ 2022-01-23 23:14 aalanwyr 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2022-01-22 01:06 aalanwyr 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Koko loves to eat bananas. There are n piles of bananas, the ith pile has piles[i] bananas. The guards have gone and will come back in h hours. Koko c 阅读全文
posted @ 2022-01-21 00:36 aalanwyr 阅读(45) 评论(0) 推荐(0) 编辑
摘要: There are some spherical balloons taped onto a flat wall that represents the XY-plane. The balloons are represented as a 2D integer array points where 阅读全文
posted @ 2022-01-14 09:21 aalanwyr 阅读(35) 评论(0) 推荐(0) 编辑
摘要: You are given the root node of a binary search tree (BST) and a value to insert into the tree. Return the root node of the BST after the insertion. It 阅读全文
posted @ 2022-01-12 18:19 aalanwyr 阅读(31) 评论(0) 推荐(0) 编辑
摘要: ou are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path represents a binary number starting with the most si 阅读全文
posted @ 2022-01-11 23:23 aalanwyr 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 最近事情比较多,耽误了。。。。。。 Given two binary strings a and b, return their sum as a binary string. Example 1: Input: a = "11", b = "1" Output: "100" Example 2: 阅读全文
posted @ 2022-01-10 17:51 aalanwyr 阅读(39) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页