 Posts by Palani M

Author Biographical Info: Avid competitive programmer. Love problem solving. Machine Learning Enthusiast.

#### Find indices of Target sum in a given array in C++

By Palani M

In this tutorial, we will be solving a popular algorithmic challenge. This question can be found on leetcode as TwoSum. We will be solving this Two Sum problem in C++. Two Sum Prob.... Read More

#### Rearranging spaces between words in Python

By Palani M

In this tutorial, we will be solving a Leet code weekly contest problem in which we are required to rearrange the spaces between a given string text using Python programming. Assum.... Read More

#### Matrix Diagonal Sum in C++

By Palani M

In this tutorial, we will be writing a program to calculate sum of the diagonal elements of a matrix in C++. Diagonal Matrix Sum in C++ This question was a part of the Leetcode Biw.... Read More

#### Find maximum sum of all diagonals in matrix Python

By Palani M

In this tutorial, we will learn how we can traverse through all diagonals in a 2D matrix in Python. Find the maximum sum of all diagonals in matrix Python This question is based on.... Read More

#### Memory Leaks in C++

By Palani M

In this article, we will learn about memory leaks in C++. We will see a basic introduction about memory allocation and its types. We will then proceed to learn about memory leaks i.... Read More

#### Digital Root of Large Integers using Recursion in C++

By Palani M

In this tutorial, we will learn how to calculate the digital root of a given long number i. We will be using a recursive approach for the same. We will learn what a digital root me.... Read More

#### std::bsearch in C++ with examples

By Palani M

In this tutorial we will learn about std::bsearch function and how it works in C++. As the name suggests, it stands for binary search. We will explain how binary method of searchin.... Read More

#### Find Number of sub-arrays having sum exactly equal to k in C++

By Palani M

In this tutorial, we will learn how to find the number of sub-arrays with a sum exactly equal to a given number in C++. We will not be discussing how to find one such sub array giv.... Read More