加载中...
分类详情
中等 分类
969-煎饼排序(Pancake Sorting)
原文链接: https://leetcode-cn.com/problems/pancake-sorting 英文原文Given an array of integers arr, sort the array by performing a series of pancake flips. In one pancake flip we do the following steps: Choose an integer k where 1 <= k <= arr.length. Reverse …
2021-12-03
970-强整数(Powerful Integers)
原文链接: https://leetcode-cn.com/problems/powerful-integers 英文原文Given three integers x, y, and bound, return a list of all the powerful integers that have a value less than or equal to bound. An integer is powerful if it can be represented as xi + yj fo…
2021-12-03
991-坏了的计算器(Broken Calculator)
原文链接: https://leetcode-cn.com/problems/broken-calculator 英文原文There is a broken calculator that has the integer startValue on its display initially. In one operation, you can: multiply the number on display by 2, or subtract 1 from the number on displ…
2021-12-03
998-最大二叉树 II(Maximum Binary Tree II)
原文链接: https://leetcode-cn.com/problems/maximum-binary-tree-ii 英文原文A maximum tree is a tree where every node has a value greater than any other value in its subtree. You are given the root of a maximum binary tree and an integer val. Just as in the pr…
2021-12-03
1006-笨阶乘(Clumsy Factorial)
原文链接: https://leetcode-cn.com/problems/clumsy-factorial 英文原文The factorial of a positive integer n is the product of all positive integers less than or equal to n. For example, factorial(10) = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1. We make a clumsy f…
2021-12-03
1017-负二进制转换(Convert to Base -2)
原文链接: https://leetcode-cn.com/problems/convert-to-base-2 英文原文Given an integer n, return a binary string representing its representation in base -2. Note that the returned string should not have leading zeros unless the string is "0". Example 1: Input…
2021-12-03
1024-视频拼接(Video Stitching)
原文链接: https://leetcode-cn.com/problems/video-stitching 英文原文You are given a series of video clips from a sporting event that lasted time seconds. These video clips can be overlapping with each other and have varying lengths. Each video clip is describ…
2021-12-03