Calvin Chan·Mar 16, 2019Solving Basic Calculator I, II, III on leetcodeRecently, I found that there are 5 questions on leetcode look very similar and I am gonna discuss them today and my way to solve the…A response icon4A response icon4
Calvin Chan·Jan 5, 2019Letter Combinations of a Phone NumberTwo years ago, during a FAANG coding interview, I was asked to print all the possible letter combinations of a phone number. I was stock…
Calvin Chan·Jan 5, 2019A general approach for Subsets, Combinations and PermutationsRecently, I found that there are 5 questions on leetcode look very similar and I am gonna discuss them and my way to solve the questions.A response icon2A response icon2
Calvin Chan·Sep 20, 2018How to find the starting/ending position of an element using Binary SearchBinary search is a fundamental algorithm in computer science. It looks easy(at first), but have you ever encountered these problems when…A response icon4A response icon4
Calvin Chan·Mar 20, 2017Deploy a React + React Router+ Redux website on S3Just 4stepsA response icon1A response icon1
Calvin Chan·Jun 22, 2016A Trick to Play a Landscape Video in a Portrait ViewController Regardless of Orientation LockIf your ViewController(which plays videos) can be in both portrait and landscape, I strongly recommend that to do it with AutoLayout and…
Calvin Chan·Jun 2, 2016The simplest way to make a pull-to-refresh and infinite tableview with ReactJSPull-to-refresh and pull-to-load-more are extremely common to show data in web, there are so many libraries to make it in React, but there…A response icon2A response icon2