yjies
yjies
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
yjies的博客
全部文章
(共2篇)
剑指offer - 数组中重复的数字
Method 1 Time:O(n) Space:O(1)Method 2 Time:O(n) Space:O(n)Special Test Case: [6,3,2,0,2,5,0] public class Solution { public boolean duplicate(...
array
Hash
2021-02-19
1
449
《剑指offer》第13题 机器人的运动范围
Try two methods. One is BFS with the queue. The other is DFS with recursion. import java.util.*; public class Solution { // bfs with queue pub...
bfs
dfs
recursion
graph
2021-01-14
2
483