24/01/2024
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How To Find The Minimum Path From Top To Bottom Of A Triangle
Two dynamic programming techniques to solve Leetcode 120. Triangle. One has space complexity O(n^2). The other is O(n).
17/01/2024
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How To Find The Longest Substring Without Repeating Characters
A simple C++ solution to Leetcode 3. Longest Substring Without Repeating Characters using a sliding window approach and an unordered map to track character positions.
10/01/2024
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How To Find The Maximal Subarray Having Distinct Elements
A simple C++ solution to Leetcode 1695. Maximum Erasure Value using a sliding window approach and prefix sums.
03/01/2024
Take a look at our latest article about Coding Challenges. Enjoy your reading!
Common Mistakes in Coding Interviews and How to Avoid Them
Exploring the most common mistakes in coding interviews and providing strategies to avoid them will help you excel in your following technical interview.
27/12/2023
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How to Check If a Number is a Power of Four
Problem statement Given an integer n, return true if it is a power of four. Otherwise, return false. An integer n is a power of four if there exists an integer x such that n == 4^x. Example 1 Input: n = 16 Output: true Example 2 Input: n = 5 Output:
20/12/2023
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How to Encode Morse Code
A C++ solution to Leetcode 804. Unique Morse Code Words
13/12/2023
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How To Add Two Numbers Represented As Linked Lists
A C++ solution to Leetcode 2. Adds Two Numbers represented as linked lists by iterating through both linked lists, digit by digit, and calculating the sum and carry. It also handles different scenarios for the lengths of the input lists and any remaining carry values.
06/12/2023
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How to Solve Coding Challenges: A Comprehensive Guide
A step-by-step approach to effectively solve coding challenges, prepare for coding interviews, and land dev jobs.
01/12/2023
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How To Count Unique Paths In A Grid With Obstacles
A C++ solution to Leetcode 63. Unique Paths II, counting the number of unique paths in a grid with obstacles using dynamic programming.
29/11/2023
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How to Perform a Counting Using Array and Hash Table
A simple C++ solution to Leetcode 387. First Unique Character in a String.
27/11/2023
Take a look at our latest article about Coding Challenges. Enjoy your reading!
How to Convert a Given Roman Numeral to its Equivalent Integer Value
A C++ solution to Leetcode 13. Roman to Integer using Hash table.