码迷,mamicode.com
首页 >  
搜索关键字:extended lights out    ( 36586个结果
LeetCode "Max Points on a Line "
The first solution I figured out is O(n^3). I thought it must be O(n^2) to get max points on a line for a given point.. but after checking several art...
分类:其他好文   时间:2014-07-22 22:47:15    阅读次数:226
poj 1094
Sorting It All Out Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 26911   Accepted: 9285 Description An ascending sorted sequence of distinct values is one ...
分类:其他好文   时间:2014-07-22 22:38:36    阅读次数:166
java开始学习,数据类型和堆栈
一篇简单的文章作为自己转型的开始,以后由嵌入式开发转向安卓app开发 javaee企业版 javase 标准板,做桌面应用程序 javame小型版,针对小产品,比如手机(这个已经不用了,现在用的是安卓) java输出 System.out.p...
分类:编程语言   时间:2014-07-22 22:37:55    阅读次数:244
[leetcode]Combinations
CombinationsGiven two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3.....
分类:其他好文   时间:2014-07-22 22:36:54    阅读次数:153
Android中的ACCESS_MOCK_LOCATION权限使用Demo
The DDMS tool can be used to push out test location during testing. However, it has two serious limitations:DDMS sets location for GPS location provid...
分类:移动开发   时间:2014-07-22 22:34:35    阅读次数:915
易学设计模式看书笔记(3) - 工厂方法模式
二、工厂方法模式 1.动物管理系统的例子 首先,抽象的动物类和具体的动物实现类: public interface Animal{ public void eat(); } public class Tiger implements Animal { public void eat(){ sysout.out.println("老虎会吃"); }; ...
分类:其他好文   时间:2014-07-22 00:07:33    阅读次数:231
如何从ios酷我音乐盒中导出已下载的音乐文件(使用Java编程实现)
酷我音乐ios版下载的音乐文件,通过同步助手等软件查看时,发现音乐文件都是一串数字命名。通过网上查找和自己尝试,发现那些文件都是音频文件改了文件名而已。只要修改回文件名,就能和正常的音乐一样播放了。 在网上找到了一个软件,也就是上面参考网址中的软件,但是使用的时候出现了问题,提示subscript out of range,程序不能继续执行。于是就决定自己用Java写一个来处理。 首先从手机复制出cloud.db数据库文件,为SQLite数据库文件。用SQLite Database Browser打开,...
分类:移动开发   时间:2014-07-22 00:02:33    阅读次数:395
UVA 1560 - Extended Lights Out(高斯消元)
UVA 1560 - Extended Lights Out 题目链接 题意:给定一个矩阵,1代表开着灯,0代表关灯,没按一个开关,周围4个位置都会变化,问一个按的方法使得所有灯都变暗 思路:两种做法: 1、枚举递推 这个比较简单,就枚举第一行,然后递推过去,每次如果上一行是亮灯,则下一行开关必须按下去 2、高斯消元, 这个做法比较屌一些,每个位置对应上下左右中5个位...
分类:其他好文   时间:2014-07-21 23:30:00    阅读次数:244
递归的理解
//十进制的数转化为二进制 public static void toBin(int num){ if(num > 0){ toBin(num/2); System.out.println(num%2); } } 以上面的十进制转化为二进制为例:传参数传入6,把6转化为二进制:使用递归...
分类:其他好文   时间:2014-07-21 23:29:01    阅读次数:225
poj1651Multiplication Puzzle(取数,区间DP)
Description The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:其他好文   时间:2014-07-21 22:11:18    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!