派仔
派仔
全部文章
分类
题解(68)
归档
标签
去牛客网
登录
/
注册
Lincs
Do more, know more, be more
全部文章
(共149篇)
201301 JAVA 题目2-3级
DP import java.util.*; public class Main { public Main() { } public int count(int n, int m) { int[][] dp = new int [n][m]; ...
Java
2020-08-12
4
950
蛇形矩阵
import java.util.*; public class Main { public Main() { } public String getResult(int n) { List<List<Integer>> laye...
Java
2020-08-12
0
489
字符串合并处理
import java.util.*; public class Main { private Map<Character, Character> map; public Main() { map = new HashMap<>(); ...
Java
2020-08-12
0
750
字符串分割
顺便把API也实现了 import java.util.*; public class Main { private List<String> list; public Main() { list = new LinkedList<>()...
Java
2020-08-11
1
676
整数与IP地址间的转换
import java.util.*; public class Main { private final int N = 4; public Main() { } public String convert(String str) { // i...
Java
2020-08-11
160
6058
按字节截取字符串
汉字是双字节,大于255 import java.util.*; public class Main { public Main() { } public String substring(String str, int k) { StringBuild...
Java
2020-08-11
0
693
201301 JAVA题目0-1级
dfs 搜索 import java.util.*; public class Main { public Main() { } private boolean dfs(List<Integer> bag, int target, int i) { ...
Java
2020-08-11
1
885
字符串匹配
Set 轻松解决 import java.util.*; public class Main { public Main() { } public boolean isAllCharExist(String pShortString, String pLongStrin...
Java
2020-08-11
18
2460
删除字符串中出现次数最少的字符
哈希表,时间O(N),空间O(1) import java.util.*; public class Main { public Main() { } public String delete(String str) { // Map记录每个字母的次数 ...
Java
2020-08-11
53
5171
矩阵乘法
暴力解 import java.util.*; public class Main { public Main() { } public int[][] mul(int[][] mat1, int [][]mat2) { int x = mat1.length...
Java
2020-08-11
18
2022
首页
上一页
6
7
8
9
10
11
12
13
14
15
下一页
末页