Ventured into LeetCode and randomly selected the Single Element in a Sorted Array challenge. The requirements are very straight forward. Make sure you pay attention to the following Note: Your solution should run in O(log n) time and O(1) space. Continue reading “Single Element in a Sorted Array”
It seems like anagrams are becoming quite popular in challenges. What is an anagram? The edited definition from Wikipedia follows:
“An anagram is direct word switch or word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once. Any word or phrase that exactly reproduces the letters in another order is an anagram”. Continue reading “Valid Anagram”
For the past few months I had been working attempting to solve a challenge per day on HackerRank. I like that site. A couple weeks ago I was introduced to LeetCode. Challenges seem to be more intense and requirements seem to be vaguer. Knowing this, one needs to think and plan the approach / algorithm with greater care and expect to fail unit tests that one would not think off. I just finished a challenge and decided to post in this blog my approach to solving it. Continue reading “Fraction Recurring Decimal”
My wife and I spent the past four days visiting my son in Indiana. It is always nice to get away from the routine to think and reflect on things. That said; I am happy returning home and back on my routine.
Over the long weekend I received some items I ordered from Amazon.com. I received an AmazonBasics 7 Port USB 2.0 Hub which I have not opened yet. Will open the box and connect it to my Raspberry Pi next weekend. On a separate package I should also have received a SD card with the Raspberry OS. It must be with the mail that my neighbor collected while we were out of town. My wife will check with them later today. Continue reading “Book and Hub”