乐趣区
  • 首页
  • 分类
    • javascript
    • 日常
    • html5
    • python
    • app
    • 书评
    • wordpress
  • 我的作品
  • 关于
  • 隐私政策
  • 首页
  • 分类
    • javascript
    • 日常
    • html5
    • python
    • app
    • 书评
    • wordpress
  • 我的作品
  • 关于
  • 隐私政策
  1. 首页
  2. 标签
  3. greedy-algorithm
leetcode452-Minimum-Number-of-Arrows-to-Burst-Balloons

java leetcode452-Minimum-Number-of-Arrows-to-Burst-Balloons

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 horizontal diameter. Since it’s horizontal, y-coordinates don’t matter and hence the x-coordinates of start and end of the diameter suffice. Start is …

118次阅读
java 2019-11-08
leetcode421-Maximum-XOR-of-Two-Numbers-in-an-Array

java leetcode421-Maximum-XOR-of-Two-Numbers-in-an-Array

Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai< 231.

159次阅读
java 2019-11-07
leetcode435-Nonoverlapping-Intervals

java leetcode435-Nonoverlapping-Intervals

使用二维数组表示区间组,每一个子数组的第一个值表示区间的开始坐标,第二个值表示区间的结束坐标。计算最少进行多少次删除操作,可以确保剩下的区间不会产生任何重叠。

131次阅读
java 2019-10-01
leetcode406. Queue Reconstruction by Height

java leetcode406. Queue Reconstruction by Height

假设有一组人站成一堆,每个人都记录下了自己的高度,以及在自己前面有多少个不比自己矮的人。现在请按照这个信息将这组人放在队列中正确的位置上并返回。

50次阅读
java 2019-03-11
leetcode402. Remove K Digits

java leetcode402. Remove K Digits

直观的来说,删除数字得到最小的数字意味着我们应当尽可能的将越小的数字保留在高位,因此当我们从左往右遍历时,一旦遇到比前一个数字更小的数字,就应当删除前一个数字而保留这个数字。当我们用尽了所有删除时…

137次阅读
java 2019-03-08
[LeetCode] 767. Reorganize String

java [LeetCode] 767. Reorganize String

Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same.

148次阅读
java 2018-12-27
leetcode330. Patching Array

java leetcode330. Patching Array

假设有一个有序的正整数数组nums和一个整数n,最少添加几个元素到这个数组中,使得从1-n的所有整数都可以由这个数组中的值的或是几个值的和构成。

151次阅读
java 2018-12-06
版权说明

本站部分资源来自于网络收集,若侵犯了你的隐私或版权,请及时联系我们删除有关信息。联系邮箱:wukuili@gmail.com

鲁ICP备18007129号
 Theme by Puock