Published onMarch 14, 2022[LeetCode 121] Best Time to Buy and Sell StockTwoPointersYou are given an array `prices` where `prices[i]` is the price of a given stock on the `ith` day.
Published onMarch 7, 2022[LeetCode 116] Convert Sorted Array to Binary Search TreeTreeYou are given a **perfect binary tree** where all leaves are on the same level, and every parent has two children.
Published onMarch 6, 2022[LeetCode 118] Pascals TriangleRecursionGiven an integer `numRows`, return the first numRows of **Pascal's triangle**.
Published onMarch 4, 2022[LeetCode 108] Convert Sorted Array to Binary Search TreeTreeGiven an integer array `nums` where the elements are sorted in **ascending order**, convert it to a **height-balanced** binary search tree.
Published onMarch 3, 2022[LeetCode 105] Construct Binary Tree from Preorder and Inorder TraversalTreeGiven two integer arrays `preorder` and `inorder` where `preorder` is the preorder traversal of a binary tree and `inorder` is the inorder traversal of the same tree, construct and return the binary tree.