BLOGS

The Blog

Writings from me

I write about anything and everything, but more specifically about mental stuff and programming. From discussing about how to stay productive, to discussing my approach to solving algorithms and sharing knowledge.

Top K Frequent Elements - Using HashMap and Heap

First count how frequently each number appears in the input array (nums). Then, group the numbers by their frequencies using a frequency bucket array, where each index represents a frequency and contains the numbers with that frequency. Finally, the result is built by starting from the highest frequency bucket and collecting numbers until the top k most frequent elements are found.

Read More

It’s never too late to build an habit

Hello everyone, Today I’d be writing about something different from programming. It’s going to be a series actually, I really don’t know if I’d sustain this or keep up with it but I’m doing this to work on myself and what better way to do that than to not necessarily engage an audience but to share an experience, hopefully it helps.

Read More

It is never too late to build an habit — What type of player are you?

Hello everyone, This marks the second writing for the series. I still don’t know how long I’d continue this but I have made a little progress. I learnt something new or rather I realized something I had not been conscious about.

Read More

Today with Redux I learnt

Hello everyone, It has been a really long time since I wrote, been considering it but I keep changing my mind. The past week, a couple of people around me have been sharing stories about their tech journeys and I decided, oh well, guess that was the inspiration I was looking for, so why not today 😅😅😅.

Read More

The Major Difference between Web2 and Web3

The internet as we know it today is dominated by companies that provide services in exchange for your personal data. The new iteration of the web will enable anyone to monetize their personal data. Web 2.0 and Web 3.0 represent successive iterations of the original version of Web 1.0. Web 2.0 is the World Wide Web as we know it today or the web that we are familiar with. Web 3.0 represents the next phase that will be decentralized, open and of greater utility.

Read More

What do you do when you are not programming <coding>???

Helpful activities to engage in when you are not programming.

Read More

Integer to Roman Numerals - Intuitive O(1) Constant Time Solution

Using an HashMap and mathematical logic

Read More

Two Sum II - Using straightforward Two Sum approach - Beats 100%

This is basically a two sum problem and it can be solved using the approach for two sum, only difference is the indexing

Read More

Zigzag Conversion - Intuitive Straightforward 0(n) Approach.

Using number of rows and number of steps as a reference, increment sequentially.

Read More

Longest Substring Without Repeating Characters - Straightforward Sliding Window and Hashmap

Using sliding window and hashmap

Read More
Social Accounts:
Old portfolio website:
Oyefule Oluwatayo Portfolio Old

Copyright by © Oyefule Oluwatayo