rexchaoApr 18, 20202 min readLeetCode 30 day challenge #2Question prompt: Happy Number Write an algorithm to determine if a number n is "happy". A happy number is a number defined by the...
rexchaoApr 15, 20202 min readLeetCode 30day coding challenge #1 Single Number Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm...
rexchaoApr 15, 20202 min readThoughts and explanations on iterative and recursive binary searchLast time I said the next post would be about the binary search algorithm. Here it is. I will only include the iterative solution first...
rexchaoApr 13, 20202 min readBig O notation and more recursionToday I looked up some information on the time complexity of a program, usually represented using the Big O notation. This shows how much...
rexchaoApr 11, 20203 min readRecursion and IterationHey, it's me. For the second time. What better time there is to talk about some problems I have been working on? Recently I am writing...