上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 30 下一页
摘要: https://www.cnblogs.com/xueqiuqiu/articles/8779029.html 阅读全文
posted @ 2020-05-09 11:11 弓呆的胖次 阅读(96) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/pascals-triangle-ii/solution/xiang-xi-tong-su-de-si-lu-fen-xi-duo-jie-fa-by--28/ 思路: 注意一下给出的用例,最上方节点算是第0行,所以说,第三行的这个3 阅读全文
posted @ 2020-05-08 17:13 弓呆的胖次 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 思路: List有个get(i),函数,求的是list里面,下标为i的这个元素,注意这一点!很有用 此外,每一行的第一个与最后一个元素一定是1,不满足那个规则,所以说要单独处理 class Solution { public List<List<Integer>> generate(int numR 阅读全文
posted @ 2020-05-08 16:44 弓呆的胖次 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 作者:牛客196631657号链接:https://www.nowcoder.com/discuss/406081?type=post&order=time&pos=&page=1&channel=&source_id=1来源:牛客网 笔试 总体来说难度比美团低很多,前三道题都不算很难,只有最后一题 阅读全文
posted @ 2020-05-08 16:01 弓呆的胖次 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 作者:ricardoooo链接:https://www.nowcoder.com/discuss/405849?type=post&order=time&pos=&page=1&channel=&source_id=1来源:牛客网 快手效率超高,一点开始面试,一二面连着,四点oc。 一面: 自我介绍 阅读全文
posted @ 2020-05-08 15:43 弓呆的胖次 阅读(882) 评论(0) 推荐(0) 编辑
摘要: class Solution {//看笔记,散列表 public boolean containsNearbyDuplicate(int[] nums, int k) { Set<Integer> set=new HashSet<Integer>();//散列表,不能存储相同元素,而且存储元素顺序不 阅读全文
posted @ 2020-05-08 15:30 弓呆的胖次 阅读(207) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node-ii/solution/di-gui-fa-jian-dan-yi-dong-ban-xin-shou-kan-by-lov/ 思路:要用到一个函 阅读全文
posted @ 2020-05-08 14:50 弓呆的胖次 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 思路: (1)因为是一个完美二叉树,也就是,一个节点要么没有左右子节点,要么左右子节点都有 (2)假如根节点为空。或者根节点左子树为空,不需要进行算法,返回root (3)此时根节点一定有子树,把根的左子节点和右子节点连接起来 (4)之后判断根节点是否有next(和根同一行的节点),有的话,还是因为 阅读全文
posted @ 2020-05-08 11:40 弓呆的胖次 阅读(112) 评论(0) 推荐(0) 编辑
摘要: https://www.nowcoder.com/discuss/405849?type=post&order=time&pos=&page=1&channel=&source_id=1 https://www.nowcoder.com/discuss/406081?type=post&order= 阅读全文
posted @ 2020-05-08 10:25 弓呆的胖次 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 作者:offer能来否链接:https://www.nowcoder.com/discuss/423235?type=post&order=time&pos=&page=1&channel=&source_id=1来源:牛客网 3月中旬投了很多简历,可是没有一个公司找我面(简历太菜了吧···),还好 阅读全文
posted @ 2020-05-08 09:45 弓呆的胖次 阅读(590) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 30 下一页