Posted in allcategorites competitive programming

Matrix Summation Hackerrank Solution

The below algorithm is used to transform the matrix and we will use it for Matrix Summation. We need to find the original matrix, given…

Continue Reading
Posted in allcategorites competitive programming

A company is repainting its office – HackerRank Solution

Problem You can find the problem statement here. Explanation Subarrays with a sum less than or equal to 7 are Length 1 – [2], [3],…

Continue Reading
Maximum Product Subarray
Posted in allcategorites competitive programming data structures and algorithms

Maximum Product Subarray in O(N) Time – Leetcode Solution

Hi everyone! In this post, we are going to discuss a very famous DSA problem known as the Maximum Product Subarray. It is a leetcode…

Continue Reading
Posted in allcategorites competitive programming

Minimum number of transformation steps required to make all elements of an array equal

Problem definition Given an array of N elements, our task is to find the minimum number of transformations that we can perform to make all…

Continue Reading
NxNxN Matrix in Python 3
Posted in allcategorites competitive programming data structures and algorithms Machine Learning tutorial

NxNxN Matrix in Python 3

A 3d matrix(NxNxN) can be created in Python using lists or NumPy. Numpy provides us with an easier and more efficient way of creating and…

Continue Reading
Boruvka’s Algorithm in Python
Posted in allcategorites competitive programming data structures and algorithms

Boruvka’s Algorithm in Python

Introduction In this blog post, we will learn how to code Boruvka’s Algorithm in Python. Algorithms are at the heart of computer science. They are…

Continue Reading
Roti Prata SPOJ Solution
Posted in allcategorites competitive programming data structures and algorithms

Roti Prata SPOJ Problem Solution – Complete Solution Approach with C++ and Java Code

This post contains Roti Prata SPOJ problem explanation, solution approach, C++ and Java solution of Roti Prata SPOJ Problem

Continue Reading
Lee Algorithm in Python | Solution to Maze Routing Problem in Python
Posted in allcategorites competitive programming data structures and algorithms tutorial

Lee Algorithm in Python | Solution to Maze Routing Problem in Python

Introduction Definition: The Lee algorithm is one feasible solution for maze routing problems based on a breadth-first search. It always gives an optimal solution, if…

Continue Reading
Vending Machine with Python Code
Posted in allcategorites competitive programming data structures and algorithms python projects tutorial

Vending Machine with Python Code

This blog will discuss how we can build a Vending Machine with Python Code (console app). The Vending Machine with Python code is a small…

Continue Reading
Top 50 Array Coding Questions for Online Assessment
Posted in allcategorites competitive programming data structures and algorithms

Top 20 Array Coding Questions for Online Assessment

Hey everyone! Today we’re going to discuss the top 20 array coding questions which are most frequently asked in online assessments (and interviews) by top…

Continue Reading