Yosgi
Yosgi
Avatar
😀
3d ai agents ai engineering ai systems algorithms algorithms array binary search tree binary tree css design pattern digital twin digital twins engineering frontend investing investing javascript javascript leetcode life linked list mcp mongodb network node.js performance optimization product engineering projects queue react sorting stack string vue web development web performance
  • Techniques and examples for breadth-first (level-order) traversal of binary trees.
    Algorithms Created Sun, 28 Feb 2021 00:00:00 +1300
  • Time: 10 minutes The question is to find the path from the root node to the child nodes whose sum is equal to the target value. It is easy to think of using DFS. The path can be passed as a parameter. …
    Algorithms Created Sun, 28 Feb 2021 00:00:00 +1300
  • When traversing a binary tree in front, middle, or post-order, we use a stack to simplify operations. This is because they are all recursive structures of DFS, which means processing from bottom to …
    Algorithms Created Sun, 28 Feb 2021 00:00:00 +1300
  • As you can see from the previous questions, the recursive methods for front-, middle-, and post-order traversal of a binary tree are similar, but the iterative implementation is completely different. …
    Algorithms Created Sat, 27 Feb 2021 00:00:00 +1300
  • 1h The order of in-order traversal is left - right - center recursion It’s very easy with recursion var postorderTraversal = function(root) { var res = [] if (!root) return res var travel = function …
    Algorithms Created Fri, 26 Feb 2021 00:00:00 +1300
  • 10min The order of pre-order traversal of a binary tree is center-left-right First traverse all root nodes and left nodes, then process the right node It can be seen that this is a recursive behavior. …
    Algorithms Created Thu, 25 Feb 2021 00:00:00 +1300
  • 30min The first thing that comes to mind when I get the question is to sort it directly… But we can optimize the quick sort to get the result Solution 1. Quick sort The idea of quick sort is to find a …
    Algorithms Created Thu, 25 Feb 2021 00:00:00 +1300
  • 30min The order of in-order traversal is left - middle - right recursion It’s very easy with recursion var inorderTraversal = function(root) { var res = [] if (!root) { return res } var travel = …
    Algorithms Created Thu, 25 Feb 2021 00:00:00 +1300
  • Release Date: February 25, 2021 Understanding React Hooks Those who have used the old version of react should know that react’s class component has state to manage the internal state, as shown in the …
    Frontend Created Thu, 25 Feb 2021 00:00:00 +1300
  • A few years ago, the company needed to log in and register, and the estimated construction period was one month. As a result, the project became uncontrollable during the process, and it took almost …
    Product Engineering Created Sun, 21 Feb 2021 00:00:00 +1300