> LeetCode Problem - Link [https://leetcode.com/problems/max-consecutive-ones/]
introduced in the Arrays 101 track of LeetCode. I first solved this and got it wrong by over-complicating it. Deleted the whole
code and tried a simpler approach.
SIMPLE ITERATIVE APPROACH
If we encounter a 1, increment count...
> LeetCode Problem - Link [https://leetcode.com/problems/ransom-note/]
I will be solving the Ransom Note problem from LeetCode today, this requires you to utilize a hashmap to solve this. I took a
while to solve this perfectly, I spent almost 20 minutes trying to create 2 hashes (god knows for what) and compare them....
> LeetCode Problem - Link [https://leetcode.com/problems/middle-of-the-linked-list/description/]
A supposedly stepped-up difficult problem in easy mode on the Explore Course
[https://leetcode.com/explore/learn/card/the-leetcode-beginners-guide/692/challenge-problems/4426/] I was doing....
> LeetCode Problem - Link [https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/]
An attempt at solving LeetCode's Number of Steps to Reduce a Number to Zero. It shouldn't take you more than a few minutes for you
to get it right. Pretty easy.
USING A SIMPLE WHILE LOOP...
> LeetCode Problem - Link [https://leetcode.com/problems/fizz-buzz/]
Coming back to solving FizzBuzz after almost a decade brings back a lot of memories. I remember the FizzBuzz program was known to
be very easy. It also teaches us the importance of ordering logical statements, there was a time when candidates get this wrong in...
> LeetCode Problem - Link [https://leetcode.com/problems/richest-customer-wealth/description/]
Today, I solved the Richest Customer Wealth on LeetCode. A pretty straightforward approach for solving this, we're given a
2-dimensional array, we need to loop over them, and maintain one variable for ma...
> LeetCode Problem - Link [https://leetcode.com/problems/running-sum-of-1d-array/]
A pretty straightforward approach for solving this, we add the adjacent numbers in an array and return the final resultant array
SEQUENTIAL APPROACH
/**
* @param {number[]} nums
* @...
> LeetCode Problem - Link [https://leetcode.com/problems/add-two-numbers/]
Today I attempted to solve the Add Two Numbers Problem on LeetCode, don't be fooled by the title. It's not as simple as adding two
numbers. The devil is in the details. JK! It's not that difficult to be honest, although I did take a...
> LeetCode Problem - Link [https://leetcode.com/problems/two-sum/]
I had just added support for category tags on my blog, LeetCode makes a debut!
It's customary to begin my LeetCode journey by solving the first problem. Two Sum Problem
Your job is to find two numbers that add up to a third number in...
Implementing Dark Mode in applications can be challenging, especially for large or legacy applications. It requires incrementally
updating different parts of your app before rolling out the complete dark mode feature to your users. However, there are libraries
available, such as Radix UI, that can simplify the process of implementing Dark Mode for your application. or legacy. You need to
incrementally update parts...