Zhen Yang·Jun 16, 2025How to perform efficient cachingCaching is a common strategy used to solve many resource bottleneck issues; such as disk I/O, network I/O and CPU speed. To implement a…
Zhen Yang·Apr 26, 2025How to write concurrent code in GoIdiomatic patterns and development practices for writing production ready concurrent code
Zhen Yang·Nov 3, 2024Letter Combinations of a Phone Number — LeetCodeGiven a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the…
Zhen Yang·Nov 2, 2024Container With Most Water — LeetCodeYou are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0)…
Zhen Yang·Oct 31, 2024Construct Binary Tree from Preorder and Inorder Traversal — LeetCodeGiven two integer arrays preorder and inorder where preorder is the preorder traversal of a binary tree and inorder is the inorder…
Zhen Yang·Oct 26, 2024Unique Paths — LeetCodeThere is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to…
Zhen Yang·Oct 24, 2024Longest Palindromic Substring — LeetCodeGiven a string s, return the longest palindromic substring in s.