Calvin ChanSolving 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…Mar 16, 20194Mar 16, 20194
Calvin ChanLetter 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…Jan 5, 2019Jan 5, 2019
Calvin ChanA 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.Jan 5, 20191Jan 5, 20191
Calvin ChanHow 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…Sep 20, 20184Sep 20, 20184
Calvin ChanA 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…Jun 22, 2016Jun 22, 2016
Calvin ChanThe 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…Jun 2, 20162Jun 2, 20162