Python Program to Count Magic Squares in a Grid in Python

By Abinash Reddy

In this article, we will learn how to count magic squares in a grid using Python. A Magic square is a 3 x 3 grid filled with all distinct numbers from 1 to 9 such that each column,.... Read More

Check whether a given array is a k sorted array or not in Python

By Abinash Reddy

In this article, we learn how to check whether a given array is a k sorted array or not in Python. An array is said k sorted array if each element in the array is at most k distanc.... Read More

N-Bonacci Numbers in Python

By Abinash Reddy

In this article, we will learn how to implement N-Bonacci Numbers in Python. N-Bonacci Numbers are similar to the Fibonacci series but in the N-Bonacci series, each term is the sum.... Read More

Python program to compare two text files

By Abinash Reddy

In this article, we will learn how to compare two text files in Python. We will try to implement this problem by using various methods. Files used in examples file1 file2 Method 1:.... Read More

Two sets program in C++

By Srirama Charan

Today, we will see a basic problem in C++ and try to find an efficient algorithm for it. The problem goes like this. We are given an integer n and we have to divide the numbers 1,2.... Read More

Python program to extract a single value from JSON response (Using API call)

By Rahul Kumar

Hello Everyone! In this Python tutorial, we are going to learn how to retrieve Single data or single values from JSON using Python. To perform this task we will be going to use the.... Read More

Find Maximum & Minimum Element in an Array Using C++

By Isha Prasad

Hello Learners, In this article, we’ll be learning how to Find the Maximum and Minimum elements of an Array in C++. The array can either be user-defined or by default given i.... Read More

Rearranging the given number to form the smallest number in Python

By Abinash Reddy

In this article, we will implement a program to rearrange the digits of a given number to form the smallest possible number in Python. We will rearrange the number such that it for.... Read More