中文
Overview
Posts
98
About
Yosgi
😀
Yosgi
Siqi Liu
A developer who likes to tinker.
Auckland
hiyosgi@gmail.com
RSS Feed
https://www.linkedin.com/in/yosgi/
Nice Resume
A convenient and quick resume builder tool
Our Little Shire
A small 3D village to explore, with stories, animals, and little discoveries
Evo! Partner Expedition
A roguelike creature adventure about building a team, evolving partners, and battling together
Werewolf AI
A Werewolf social-deduction game played with AI players, built on discussion, voting, and hidden roles
Overview
Posts
98
About
3d
ai
ai agents
ai engineering
ai systems
algorithms
algorithms
array
binary search tree
binary tree
claude
codex
css
design pattern
digital twin
digital twins
engineering
engineering management
frontend
game development
investing
investing
javascript
javascript
leetcode
life
linked list
mcp
mongodb
network
node.js
performance optimization
product engineering
projects
queue
react
sorting
stack
string
three.js
vue
web development
web performance
814-Binary Tree Pruning
Pruning subtrees that contain no 1 with post-order traversal, using a dummy parent so the root can also be pruned.
Algorithms
Created
Wed, 17 Mar 2021 00:00:00 +1300
129-Find the sum of numbers from the root node to the leaf node
Summing all root-to-leaf numbers with top-down pre-order DFS, carrying the running value down each path.
Algorithms
Created
Tue, 16 Mar 2021 00:00:00 +1300
563-Slope of Binary Tree
Computing the total tilt of a binary tree with recursion that returns each subtree's sum.
Algorithms
Created
Tue, 16 Mar 2021 00:00:00 +1300
Interview Question-04-12-Sum Path
Counting paths with a target sum starting from any node, using an outer recursion over nodes and an inner recursion over paths.
Algorithms
Created
Tue, 16 Mar 2021 00:00:00 +1300
124-Maximum Path Sum in a Binary Tree
Finding the maximum path sum in a binary tree with recursion that returns each node's best downward contribution.
Algorithms
Created
Mon, 15 Mar 2021 00:00:00 +1300
222-Number of nodes in a complete binary tree
Counting nodes in a complete binary tree using left/right subtree depths instead of a full DFS.
Algorithms
Created
Sat, 13 Mar 2021 00:00:00 +1300
662-Binary Tree Maximum Width
Computing the maximum width of a binary tree with BFS, tracking each node's position index within its level.
Algorithms
Created
Sat, 13 Mar 2021 00:00:00 +1300
863-All nodes with distance -K- in a binary tree
Finding all nodes at distance K by first adding parent links with DFS, then searching outward from the target.
Algorithms
Created
Sat, 13 Mar 2021 00:00:00 +1300
98-Verify Binary Search Tree
Validating a binary search tree by exploiting the increasing order of its in-order traversal.
Algorithms
Created
Sat, 13 Mar 2021 00:00:00 +1300
99-Restore Binary Search Tree
Restoring a BST with two swapped nodes by locating them during an in-order traversal.
Algorithms
Created
Sat, 13 Mar 2021 00:00:00 +1300
Previous
Next