Posts by Saksham Agarwal

Author Biographical Info: Not available

Rat in a maze problem in C++

By Saksham Agarwal

In this blog, we will discuss the Rat in a maze Problem in C++ and see how we can use Backtracking to get the solution. PROBLEM STATEMENT: A maze is given as an N*N binary matrix o.... Read More

Closest leaf node to a given node in Binary Tree in C++

By Saksham Agarwal

In this tutorial, we’ll see how to find the closest leaf to a node in a Binary tree in C++. Some Terminology: Leaf node: A leaf node in a binary tree is a node that has no ch.... Read More

Count number of leading spaces in a string in Python

By Saksham Agarwal

In this blog, we are going to see how we can find the number of leading spaces in a string in Python. What are leading spaces? Leading spaces refer to the number of spaces that are.... Read More