Best algorithm to generate all prime numbers up to a given range in C++

By Vikram singhal

In online coding contests, we often come across problems that are related to primality testing. So, why not we should learn about the algorithm, that can generate all possible prim.... Read More

Python program to represent n as the sum of exactly k power of 2

By Abinash Reddy

In this article, we will learn to represent n as the sum of exactly k power 2 in Python. Examples Input: n = 6, k = 2 Output: 2 4 Explanation: 2, 4 are both power of 2 and sum is 2.... Read More

C++ program to generate CAPTCHA and verify user

By Abinash Reddy

A CAPTCHA is a test to check whether the user is a human or not. CAPTCHA verification is very widely used to determine the user is a human or machine. In this article, we will impl.... Read More

C++ program to check whether a matrix is scalar or not

By Abinash Reddy

In this article, we will learn how to check whether a given matrix is scalar or not in C++. A square matrix is said to a scalar if all the diagonal elements of the matrix are equal.... Read More

Convert day number to date in particular year using Python

By Abinash Reddy

In this tutorial, we going to learn how to convert day number to date in particular year using Python language. For instance, the day number is 10 in the year 2020 then the date in.... Read More

Sum of Nth Power in Python

By Abinash Reddy

Program to find the number of ways that a given integer can be represented as the sum of the Nth power of the unique, natural numbers. For example, if X = 100 and N = 2, we have to.... Read More

Python program to find maximum product quadruple in an array

By Abinash Reddy

In this article, we will learn how to find the maximum product quadruple in an array using Python. A subsequence of size 4 is said to be a quadruple. Example Input: arr[] = {21, 4,.... Read More

C++ Program to Check if two trees are Identical

By Abinash Reddy

In this article, we will learn how to implement a program to check whether the given two trees are identical or not in C++. Two trees are said to identical when they have the same .... Read More

Related Posts