Givennpoints on a 2D plane, find the maximum
number of points that lie on the same straight line.public class Solution { /**
* This program is used t....
分类:
其他好文 时间:
2014-06-03 17:05:21
阅读次数:
434
STL的map表里有一个erase方法用来从一个map中删除掉指令的节点eg:map
mapTest;typedef map::iterator ITER;ITER
iter=mapTest.find(key);mapTest.erase(iter);像上面这样只是删除单个节点,map的形为不会出现...
分类:
其他好文 时间:
2014-06-03 16:11:29
阅读次数:
239
Emag eht htiw Em PlehDescriptionThis problem is
a reverse case of the problem 2996. You are given the output of the problem H
and your task is to find...
分类:
其他好文 时间:
2014-06-03 15:33:20
阅读次数:
347
Best Time to Buy and Sell Stock IISay you have
an array for which theithelement is the price of a given stock on dayi.Design an
algorithm to find the ...
分类:
其他好文 时间:
2014-06-02 15:01:53
阅读次数:
305
开Eclipse出现错误“parseSdkContent
failed”,Android的模拟器启动不了。尝试了不少方法,终于搞定。1.删除文件夹 C:\Documents and
Settings\covics\.android 网上一般就只有这一步,为的是删除AVD的镜像文件,我找到:C:\Us...
分类:
其他好文 时间:
2014-06-02 11:05:51
阅读次数:
228
【题目】
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", return false.
【题意】
给定字符串s1,s2,s3, 判断s3是不是s1和s2中的字交叉组合...
分类:
其他好文 时间:
2014-06-02 10:58:24
阅读次数:
211
1. matches() 匹配全部Pattern p =
Pattern.compile("reg");Matcher m =
p.matcher("String");System.out.println(m.matches());2:(matches
和find不要一起用,用reset()吐出来)...
分类:
编程语言 时间:
2014-06-02 10:19:32
阅读次数:
390
不知道大家有没有碰到这种文件,因为是乱码,文件无法删除,这时我们就可以考虑用下面的命令进行删除文件或目录 ls -i //列出文件节点 find ./
-inum XXX(节点号) -print -exec rm -rf {} \; //删除节点号文件 find . -inum XXXX(节点号) ...
分类:
系统相关 时间:
2014-06-02 06:37:25
阅读次数:
370
今天一个网友发求助信息,说某社会治安综合治理系统的连接的某个oracle用户频繁被锁,使用alteruserXXaccountunlock解锁后一会还是又被锁定,使用PLSQL登录时提示ORA-28000
让他执行了一下这条SQLselect*fromdba_profileswhereresource_namelike‘FAILED_LOGIN_ATTEMPTS%‘;
他说l..
分类:
数据库 时间:
2014-06-02 04:36:39
阅读次数:
274
连接数据库报错
[oracle@tips~]$sqlplus/assysdba
SQL*Plus:Release11.2.0.3.0ProductiononFriJun2918:44:032012
Copyright(c)1982,2011,Oracle.Allrightsreserved.
ERROR:
ORA-09817:Writetoauditfilefailed.
Linux-x86_64Error:28:Nospaceleftondevice
Additionalinforma..
分类:
系统相关 时间:
2014-06-02 04:12:14
阅读次数:
915