William Pei YuanBinary Tree Vertical Order TraversalGiven the root of a binary tree, return the vertical order traversal of its nodes' values. (i.e., from top to bottom, column by column).·4 min read·Aug 13, 2023----

William Pei YuanCreate a Binary Search TreeThis code takes an array that represents a binary tree in level-order traversal (root node at the beginning (index 0), then level by level…·2 min read·Aug 5, 2023----

William Pei YuanValidate Binary Search TreeGiven the root of a binary tree, we are to determine if it is a valid binary search tree (BST). A valid BST follows these properties:·3 min read·Aug 5, 2023----

William Pei YuanContainer With Most WaterGiven an array where each element represents the height of a vertical line on a chart. The goal is to find two lines, which together with…3 min read·Aug 4, 2023----

William Pei YuanBest Time to Buy and Sell StockSay you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one…·3 min read·Aug 4, 2023----

William Pei Yuan3 Sum Zerosolution for https://leetcode.com/problems/3sum/·3 min read·Aug 4, 2023----

William Pei YuaninPowermoves never die, it evolvesAn iterative guide to training powermoves for longevity: Part 1 — Airflares introTraining, maintaining, conditioning and/or rehabilitating your airflares for longevity. Part 1 is the setup of the g-force airflare…·3 min read·Feb 3, 2020----

William Pei YuaninPowermoves never die, it evolvesAn iterative guide to training powermoves for longevity: Part 1 — Flares introTraining, maintaining, conditioning and/or rehabilitating your flares for longevity. Part 1 is the setup of the g-force flare machine and…·8 min read·Jan 27, 2020----

William Pei YuaninPowermoves never die, it evolvesAn iterative guide to training powermoves for longevity — Intro & faqs.Introduction & FAQs with the gravity force training machines. (*The guides are combinations of paraphrased g-force manual information…·6 min read·Jan 27, 2020--1--1

William Pei YuanThe JavaScript map() w/in ReactJS — a simple example.I have written a code sandbox (https://codesandbox.io/) example of using the all-powerful JavaScript map function with ReactJS (CRA —…·1 min read·Aug 13, 2019--2--2