o0草
o0草
全部文章
题解
归档
标签
去牛客网
登录
/
注册
o0草的博客
全部文章
/ 题解
(共2篇)
题解 | #数独#
使用广度优先算法: Queue<String> queue = new LinkedList<>(); queue.offer("0000"); while(!queue.isEmpty()){ int size =...
Java
2022-04-20
2
534
题解 | #回文数字#
先判断当前的值是否小于0,如果小于直接返回false; 循环计算目标的每一位,然后赋值到新的变量: int cur=0; int temp = x; while(x!=0){ int temp = x%10; x/=10; ...
Java
2022-04-18
0
252