原题地址:https://oj.leetcode.com/problems/max-points-on-a-line/题意:Givennpoints
on a 2D plane, find the maximum number of points that lie on the same strai...
分类:
编程语言 时间:
2014-06-03 08:55:48
阅读次数:
282
注意添加权限: 代码如下://更新短信private void
UpdateSMS(){/*update支持的协议有很多:SMS_RAW_MESSAGE SMS_STATUS_PENDING SMS_ALL
SMS_FAILED SMS_QUEUED SM...
分类:
移动开发 时间:
2014-06-03 07:26:15
阅读次数:
371
ProblemYou want to find the latitude and
longitude of a device.SolutionUse the CLLocationManager class:#import
"WSYViewController.h"#import @interface...
分类:
其他好文 时间:
2014-06-03 07:15:49
阅读次数:
275
【题目】Given a set of files, of which the sizes
will not exceed 10 Gigabytes, find out whether an input string appears or
not.Your program is judged base...
分类:
其他好文 时间:
2014-06-03 07:15:17
阅读次数:
472
1、一个文档如下db.posts.find(){ "_id" :
ObjectId("5388162dfc164ee1f39be37f"), "title" : "Java Example", "content" :
"This is a example for Java!", ...
分类:
数据库 时间:
2014-05-31 21:50:28
阅读次数:
396
匈牙利算法。 1 #include 2 #include 3 4 #define MAXNUM
1005 5 6 char map[MAXNUM][MAXNUM]; 7 char visit[MAXNUM]; 8 int son[MAXNUM]; 9 10
int find(int x, i...
分类:
其他好文 时间:
2014-05-31 16:54:26
阅读次数:
291
有时候我们在APK安装时由于工程制定了UID,换过签名后可能出现类似
INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 或 INSTALL_FAILED_UPDATE_INCOMPATIBLE
的错误,对于后者我们可以通过Logcat看到具体的比如说 has no si...
分类:
其他好文 时间:
2014-05-31 15:33:30
阅读次数:
245
今天的工作中,需要远程访问服务器上的数据库。但是,连接错误,Error code is
1326.说句实话,关于SqlServer
不能远程访问这个问题,我遇到过N次。可是每次都不认真去研究到底是什么原因造成的?直到今天,我解决这个遇到过N多次的问题时,还是相当棘手。在今天解决这个问题过程中,我深深...
分类:
数据库 时间:
2014-05-31 12:59:56
阅读次数:
303
在用mdk通过stlink烧写官方例程到stm32f429I
discovery时,烧写了十来个程序都没问题,突然在烧写一个程序时,弹出了“flash download failed - Target dll has
been cancelled”,然后后续的烧写都失败了。原因可能是其中一个程序将s...
分类:
其他好文 时间:
2014-05-31 06:58:56
阅读次数:
2006
转自:Linux 命令集锦linux下查看监听端口对应的进程#lsof
-i:9000#lsof -Pnl +M -i4如果退格键变成了:"^h"。终端连接unix删除退格键,按住CTL键同时按deleteLinux搜索#find
/ -name "xxx.conf"查看linux是32位还是64位...
分类:
系统相关 时间:
2014-05-30 23:25:09
阅读次数:
563