Creating custom compare and priority functions in C++In this article we will be discussing how to implement custom comparator functions in C++ Sort STL and custom priority functions in C++ priority queues. To facilitate easier understanding, I have picked up a problem from LeetCode which could be solve...May 8, 2021 · 5 min readvineethm.hashnode.dev
Max Rectangle Sum in a MatrixIn this article we will be discussing an efficient approach to solve the problem of finding maximum subarray sum in a 2D Matrix. Link to the problem: GFG Given the above matrix, blue rectangle denotes the maximum sum rectangle. The above problem bec...Apr 30, 2021 · 6 min readvineethm.hashnode.dev
Bulb Toggling Puzzle 💡🎯Bulb toggling is one of the famous puzzles asked in various interviews. The problem statement is as follows. LeetCode Problem: 319 There are ‘n’ bulbs that are initially OFF. You have to play a game in which there are n rounds. In the first round, y...Apr 24, 2021 · 4 min readvineethm.hashnode.dev
Understanding Recursion: First, Last and all occurrences of an element in an Array"There is a subtle difference between implementing recursively and recursive implementation". If you couldn't comprehend this quote, try reading my article on this topic. https://vineethm.hashnode.dev/iterative-recursion We are going to see the imple...Mar 5, 2021 · 7 min readvineethm.hashnode.dev
Understanding Iterative vs Recursive ImplementationIn this article, we are going to understand the various implementations of the Bubble Sort Algorithm and primarily comprehend the subtle difference between implementing recursively and recursive implementation. Bubble Sort is a classic sorting algori...Feb 27, 2021 · 9 min readvineethm.hashnode.dev