上一页 1 ··· 11 12 13 14 15
摘要: import java.util.*; public class Same { public boolean checkSam(String str1, String str2) { // write code here if(str1.length() !... 阅读全文
posted @ 2015-12-16 17:32 仔细思考一切 阅读(222) 评论(0) 推荐(0)
摘要: import java.util.*; public class Reverse { public String reverseString(String iniString) { // write code here StringBuffer tmp = new ... 阅读全文
posted @ 2015-12-16 17:30 仔细思考一切 阅读(154) 评论(0) 推荐(0)
摘要: import java.util.*; public class Different { public boolean checkDifferent(String str) { // write code here for(int i = 0; i < str.le... 阅读全文
posted @ 2015-12-16 17:29 仔细思考一切 阅读(306) 评论(0) 推荐(0)
摘要: 答案:利用了XY , YX中第一个XYXY包含了第二个public class Solution{ public static void main(String[] args){ System.out.println(isRotation("abc","abc")); ... 阅读全文
posted @ 2015-12-16 17:27 仔细思考一切 阅读(164) 评论(0) 推荐(0)
摘要: 答案:import java.util.ArrayList;import java.util.List;public class Solution{ public static void main(String[] args){ int[][] matix = {{1,2},{0... 阅读全文
posted @ 2015-12-16 16:50 仔细思考一切 阅读(407) 评论(0) 推荐(0)
摘要: 从String到StringBuffer: StringBuffer sb = New StringBuffer("abcd");从StringBuffer到String: String str = sb.toString(); 阅读全文
posted @ 2015-12-15 15:19 仔细思考一切 阅读(242) 评论(0) 推荐(0)
摘要: 有时候关闭软件后,后台进程死掉,导致端口被占用。下面以JBoss端口8083被占用为例,列出详细解决过程。解决方法:1.查找被占用的端口netstat-tlnnetstat-tln|grep8083netstat -tln 查看端口使用情况,而netstat -tln | grep 8083 则是只... 阅读全文
posted @ 2015-12-06 20:29 仔细思考一切 阅读(270) 评论(0) 推荐(0)
摘要: 9,重写Arrays.sort public int getHeight(int[][] actors, int n) { // write code here if (null == actors || n == 0) { return 0; } Arrays.sort(actors, new C 阅读全文
posted @ 2015-09-27 23:04 仔细思考一切 阅读(386) 评论(0) 推荐(0)
摘要: (记忆线:当时一刷完是1-205. 二刷88道。下次更新记得标记不能bug-free的原因。) 88 Perfect Squares(完美平方数。给一个整数,求出用平方数来相加得到最小的个数) public class Solution{ public static void main(String 阅读全文
posted @ 2015-09-27 22:41 仔细思考一切 阅读(1360) 评论(0) 推荐(0)
摘要: 12---修改host、修改主机名5.1 修改当前会话的主机名sudo hostname SY-0217查看当前会话的主机名hostname默认是我装Linux 虚机时输入的名字Ubuntu5.2 修改配置文件中的主机名输入命令sudo vi /etc/hostname直接添加SY-0217 保存退... 阅读全文
posted @ 2015-09-16 11:52 仔细思考一切 阅读(301) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15