摘要:
Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j]. You need to return the number of important reverse pai 阅读全文
posted @ 2020-08-01 12:08
Schwifty
阅读(124)
评论(0)
推荐(0)
摘要:
Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping. Example 1: 阅读全文
posted @ 2020-08-01 10:05
Schwifty
阅读(113)
评论(0)
推荐(0)
摘要:
There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor 阅读全文
posted @ 2020-08-01 08:49
Schwifty
阅读(112)
评论(0)
推荐(0)
摘要:
The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. Given n, return the value of Tn. Exa 阅读全文
posted @ 2020-08-01 03:01
Schwifty
阅读(119)
评论(0)
推荐(0)
摘要:
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y 阅读全文
posted @ 2020-08-01 00:16
Schwifty
阅读(102)
评论(0)
推荐(0)

浙公网安备 33010602011771号