WangyyLeetcode 38: Count and SayLet’s solve a medium problem together on Leetcode.com: Count and Say3 min read·Mar 20, 2021----
WangyyHow to flatten a binary tree to a linked list: recursion approachData structures such as binary trees, linked lists are frequently asked in a technical interview. Sometimes, interviewees are asked to…3 min read·Mar 14, 2021----
WangyyMerge Sort a linked listSorting algorithms are frequently asked during a technical interview. Several common sorting algorithms such as quicksort, selection sort…4 min read·Mar 4, 2021----
WangyyMax area of the island: dfs and bfs approachFor the given island that’s represented in a matrix of 0's and 1's, we usually use a depth-first search or a breadth-first search…3 min read·Feb 19, 2021----
WangyySolve the sliding window maximum problemThe sliding window algorithm is often used to find the target number in a string/list. Today, I’ll introduce how to solve this leetcode…5 min read·Feb 12, 2021----
WangyyImplement a Trie in PythonWe know tree well, a binary search tree performs well in searching. Today, I’ll introduce another tree-like data structure, which is…4 min read·Feb 5, 2021----
WangyyCrack the house robber problemMy previous post introduced the Knapsack problem. It states how to solve using the dynamic programming algorithm. Besides Knapsack…5 min read·Jan 30, 2021----
WangyyIntro to dynamic programming knapsack problemsDynamic programming problems are frequently asked in a tech interview. For me, dynamic programming problems are challenging to understand…4 min read·Jan 24, 2021----
WangyyDeal with subset, permutation, combination problems using backtracking algorithmIt’s often asked during a technical interview: write a function to get the subsets/combinations/permutations for a given set. These…6 min read·Jan 17, 2021----