-
Recent Posts
Recent Comments
Archives
Categories
Meta
Monthly Archives: October 2019
Leetcode 70: Climbing Stairs
I went down some time consuming dead ends on this problem. I focused on combinations and binomial coefficients. But these suffered from number variable overflow. What I initially missed was that the results of each n follows a fibonacci sequence. … Continue reading
Leetcode 69: Sqrt(x)
Use binary search to solve this problem. Start with left as 1 and right as x. Then find the mid point and test by squaring it. If mid * mid is equal to x then we have our answer. If … Continue reading
Leetcode 68: Text Justification
I quite liked this problem even though it seems to have a lot downvotes. It takes a while to solve because there is quite a lot of logic to encode but it is very doable. For me it was important … Continue reading