牛客248457842号 level
获赞
27
粉丝
11
关注
8
看过 TA
23
东南大学
2021
Java
IP属地:上海
暂未填写个人简介
私信
关注
2020-10-17 21:25
已编辑
东南大学 Java
1. object的方法,7大方法   2. synchronized方法讲解   3. synchronized方法实现原理   4. volatile关键字的原理   5. 锁的分类   6. 偏向锁讲解   7. NoClassDefFoundError和ClassNotFoundException的区别   8. 追问,ClassNotFoundException是不是只发生在编译时,运行时可不可以   9.类加载机制   10. redis过期策略及内存淘汰机制   11. mysql的索引种类4种 12. Innodb和myIsam的区别 13. Innodb的索引结构 14. B...
DennisLee:帮楼主贴一个代码 List<List<Integer>> res; public List<List<Integer>> getFactors(int n) { res = new ArrayList<>(); backtrack(new LinkedList<>(), n, 1, n); return res; } private void backtrack(LinkedList<Integer> list, int target, int now, int n) { if (target == now) { res.add(new ArrayList<>(list)); return; } for (int i = 2; i < target; i++) { if (n % i == 0 && (list.isEmpty() || list.peekLast() >= i)) { list.addLast(i); backtrack(list, target, i * now, n / i); list.removeLast(); } } }
投递字节跳动等公司10个岗位 >
0 点赞 评论 收藏
分享

创作者周榜

更多
关注他的用户也关注了:
牛客网
牛客企业服务