03 2021 档案
摘要:Given a binary tree struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there
阅读全文
摘要:最新加了注释的模板: 本层拿出来,放到level中,下一层的放到q中 class Solution { public List<List<Integer>> levelOrder(TreeNode root) { //初始化两个要用的数据结构 List<List<Integer>> result =
阅读全文
摘要:整体感受: 先是指出来一堆错误……然后用q,又是一堆错误……醉了。我真的不会写树。文理学院的白人咋这么聪明啊,或者说对于这道题聪明。我真是被虐得体无完肤了。 忘记一开始就问思路了,因为我就抄了那一种思路T.T 结果还真就错了 整个过程就是面试官教我做题,给我debug我给cmu丢脸了! 拼写: 广度
阅读全文