码迷,mamicode.com
首页 >  
搜索关键字:maximum number of th    ( 33896个结果
Word Search
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more th...
分类:其他好文   时间:2014-07-31 17:16:57    阅读次数:221
求最小的k个数
和快速排序有点类似,利用快速排序的划分算法, 划分算法见http://blog.csdn.net/buyingfei8888/article/details/8997803 根据int partition(int number[],int start,int end);返回值为数组下标,大小为index,index左边值均小于number【index】,右边均大于number【index】,若...
分类:其他好文   时间:2014-07-31 17:05:16    阅读次数:191
java wait 和notify
这几天自己学习了一下线程的知识,wait 方法使当前的线程等待,notify 方法 唤醒当前的线程的方法th 线程在5的时候进行wait,此时主线程继续执行, 主线程执行到9的时候 唤醒 th 线程public class ThreadDemo1 { public static void main(...
分类:编程语言   时间:2014-07-31 16:51:56    阅读次数:264
Oracle 中的replace函数的应用
replace 函数用法如下:replace('将要更改的字符串','被替换掉的字符串','替换字符串')oracle 中chr()函数CHR() --将ASCII码转换为字符 语法CHR(number_code)示例select CHR(116) from dual; --返回't'几个常用的ch...
分类:数据库   时间:2014-07-31 16:22:07    阅读次数:415
leetcode--012 single number I
1 public int singleNumber(int[] A) {2 int s=0;3 for(int i=0;i<A.length;i++){4 s=s^A[i];5 } 6 return...
分类:其他好文   时间:2014-07-31 16:13:26    阅读次数:184
Level Of Detail
【Level Of Detail】 Here's one of the ways to set up an object with differentLODs. At this point the empty object should contain both versions of th...
分类:其他好文   时间:2014-07-31 16:03:16    阅读次数:253
递归函数你玩懂了吗?
/*   * php递归函数的用法  * 你玩过吗?  * 下面开始玩一玩  */ //自己调自己就是回调       实现了一个垒加2垒减2的效果 class digui{     public function index($number){          if($number>0) {              echo $number,"&nbsp;";  ...
分类:其他好文   时间:2014-07-31 13:32:26    阅读次数:142
HDU - 1394 Minimum Inversion Number (线段树求逆序数)
Description The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj. For a given sequence of numbers a1, a2, ..., an, if we move the ...
分类:其他好文   时间:2014-07-31 13:31:46    阅读次数:229
杭电 1395
2^x mod n = 1 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11658    Accepted Submission(s): 3634 Problem Description Give a number n...
分类:其他好文   时间:2014-07-31 13:31:17    阅读次数:193
UVa11882,Biggest Number
搜索+剪枝如此水的一个题,居然搞了一上午出错在bfs与dfs时共用了一个vis数组,导致bfs完后返回dfs应该能访问到的点访问不到自己想怎么剪枝,想了几个剪枝方法,又证明,又推翻,再想,再证明,再推翻用了好长时间T T自己还是水的不行啊两个剪枝:1.若,当前求出来的解now的长度+当前状态下能访问...
分类:其他好文   时间:2014-07-31 13:15:16    阅读次数:492
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!