空白offer++
空白offer++
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
空白offer++的博客
全部文章
(共2篇)
一行解决。利用库函数
本来我也是分情况讨论的,但后来绕晕了而且还有数组越界异常,就全删了,然后想起来直接利用库函数正则表达式匹配把,就去复习了一下 public class Solution { public boolean match(char[] str, char[] pattern) { ...
2020-03-02
16
2203
按空格切割字符串
思路;1,先按空格将字符串切割成字符串数组2,将字符串数组反转拼接输出 /* 思路; 1,先按空格将字符串切割成字符串数组 2,将字符串数组反转拼接输出 */ public class Solution { public String ReverseSentence(String str) ...
2020-03-01
0
580