清心_恋旧
清心_恋旧
全部文章
分类
技术交流(6)
题解(12)
归档
标签
去牛客网
登录
/
注册
清心_恋旧的博客
全部文章
(共18篇)
输入一个非减排序的数组的一个旋转,输出旋转数组的最小元素
public int minNumberInRotateArray(int [] array) { int result = 0; int length = array.length; if(length == 0){ return result; }else{ int tmp = Inte...
2019-07-27
1
865
将一个字符串中的每个空格替换成“%20”
public String replaceSpace(StringBuffer str) { char[] chara = str.toString().toCharArray(); String result =""; for (int i=0 ;i<str.length();i++...
2019-07-26
2
1835
判断二维数组中是否含有该整数
public boolean Find(int target, int [][] array) { boolean result = false; int count = array.length; for (int i=0;i<count;i++){ int num = array[i].l...
2019-07-26
1
705
翻转子串
public boolean checkReverseEqual(String s1, String s2) { // write code here String tmpb=s2; if(s1.length()!=s2.length()){ return false; }else { c...
2019-07-26
0
914
确定一个字符串的所有字符是否全都不同
public boolean checkDifferent(String iniString) { int length = iniString.length(); char[] char...
2019-07-26
0
901
字符串压缩功能
public String zipString(String iniString) { char[] chara = iniString.toCharArray(); String fir...
2019-07-26
0
890
给定一个NxN的矩阵,将图像顺时针旋转90度。
public int[][] transformImage(int[][] mat, int n) { // write code here int[][] result = new in...
2019-07-26
0
1051
若N阶方阵中某个元素为0,则将其所在的行与列清零。
public int[][] clearZero(int[][] mat, int n) { // write code here int[][] result = new i...
2019-07-26
0
857
首页
上一页
1
2
下一页
末页