05 2022 档案

摘要: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-05-29 14:16 Grandyang 阅读(256) 评论(0) 推荐(0) 编辑
摘要:Given the root of a binary tree, return the sum of values of its deepest leaves. Example 1: Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8] O 阅读全文
posted @ 2022-05-26 10:15 Grandyang 阅读(264) 评论(0) 推荐(0) 编辑
摘要:You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You need to r 阅读全文
posted @ 2022-05-23 12:47 Grandyang 阅读(255) 评论(0) 推荐(0) 编辑
摘要:Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with - 阅读全文
posted @ 2022-05-18 12:50 Grandyang 阅读(165) 评论(0) 推荐(0) 编辑
摘要:You have n boxes labeled from 0 to n - 1. You are given four arrays: status, candies, keys, and containedBoxes where: status[i] is 1 if the ith box is 阅读全文
posted @ 2022-05-16 03:17 Grandyang 阅读(150) 评论(0) 推荐(0) 编辑
摘要:Given an integer array arr and a target value target, return the integer value such that when we change all the integers larger than value in the give 阅读全文
posted @ 2022-05-11 13:51 Grandyang 阅读(364) 评论(0) 推荐(0) 编辑
摘要:Given a string s, return the maximum number of ocurrences of any substring under the following rules: The number of unique characters in the substring 阅读全文
posted @ 2022-05-05 13:16 Grandyang 阅读(356) 评论(0) 推荐(0) 编辑

Fork me on GitHub