码迷,mamicode.com
首页 >  
搜索关键字:ber    ( 8683个结果
Leetcode: Minimum Number of Arrows to Burst Balloons
我的Greedy+Heap做法: Array按start moment升序sort,Heap里按end moment升序sort,一旦到Heap里结束时间最早的气球的end,就要扔arrow,这时在heap里的气球都会被引爆 改进:因为一旦气球爆了的话,Heap里面的元素要全部清空,不需要知道Hea ...
分类:其他好文   时间:2016-12-08 07:38:35    阅读次数:218
Leetcode: Minimum Moves to Equal Array Elements
idea 1: suppose it takes y steps to equal each elements, then this equation stands: (min + y) * num.length == sum + (num.length-1)*y, where min + y is ...
分类:其他好文   时间:2016-12-08 03:15:49    阅读次数:144
[LeetCode] Unique Substrings in Wraparound String 封装字符串中的独特子字符串
Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like this: "...zabcdefghijklmnopqrstuvwxyza ...
分类:其他好文   时间:2016-12-07 23:34:21    阅读次数:187
RSA AES 前端JS与后台JAVA的加密解密的是实现
AES CryptoJS 前提是编码方式,key,vi中设置一样,就可以进行跨语言加密解密 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ...
分类:编程语言   时间:2016-12-07 23:08:37    阅读次数:515
MD5 Checksums for R12.1.1 Rapid Install Media (文档 ID 802195.1)
Oracle EBusiness Suite R12.1.x Rapid Installmd5 Checksums November 2011 Section 1: Overview Section 2: Download md5 checksum results from Oracle Secti ...
分类:Windows程序   时间:2016-12-07 20:17:44    阅读次数:392
16. 3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.... ...
分类:其他好文   时间:2016-12-07 16:35:19    阅读次数:239
LightOJ 1097 - Lucky Number 线段树
http://www.lightoj.com/volume_showproblem.php?problem=1097 题意:一个自然数序列,先去掉所有偶数项,在此基础上的序列的第二项为3,则删去所有3的倍数的元素,再是7……重复操作,最后问第n项的值 思路:使用线段树构造序列,对一个数进行标记是否已 ...
分类:其他好文   时间:2016-12-07 01:32:35    阅读次数:282
Activity的onCreate()的PersistableBundle 参数坑。
Bundle 与 PersistableBundle 区别 仅仅是Activity oncreate()的一个参数与两个参数的区别: @Override public void onCreate(Bundle savedInstanceState,PersistableBundle p) { sup ...
分类:其他好文   时间:2016-12-06 22:46:59    阅读次数:193
架构漫谈(二):认识概念是理解架构的基础
转自 : http://kb.cnblogs.com/page/539838/ 在前一篇文章中,我们讨论了什么是架构。事实上,这些基础概念对于做架构是非常重要的,大部分人对于每天都习以为常的概念,都自以为明白了,但实际上都是下意识的,并不是主动的认识。比如说“什么是桌子?”,做培训的时候,我经常拿这 ...
分类:其他好文   时间:2016-12-06 09:24:25    阅读次数:165
Reverse Nodes in k-Group
Reverse Nodes in k-Group Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is n ...
分类:其他好文   时间:2016-12-06 03:30:44    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!