2018年1月1日

空格替换

摘要: public class Solution { public String replaceSpace(StringBuffer str) { if(str==null){ return null; } //遍历一个字符串求出空格数 进而可以求出变后的总长度 int count=0; for(int 阅读全文

posted @ 2018-01-01 16:09 cayman丿2016 阅读(107) 评论(0) 推荐(0)

java 实现二维数组查找

摘要: public class Solution { public boolean Find(int target, int [][] array) { int col=array[0].length-1; int row=0; boolean key=false; while( row <= array 阅读全文

posted @ 2018-01-01 11:05 cayman丿2016 阅读(152) 评论(0) 推荐(0)

导航