Implementation of Egyptian Fraction using Greedy Algorithm in C++

By Abinash Reddy

In this article, we will learn how to implement Egyptian Fraction using a Greedy Algorithm in C++. A positive fraction number can be represented as the sum of unique unit fractions.... Read More

Chess Board Using MatPlotLib Python

By Abinash Reddy

In this article, we will learn how to create a chessboard using Python. In this, for creating a chessboard we are going to use MatPlotLib and Numpy Python modules. Create a Chess B.... Read More

Lobb Number in C++

By Abinash Reddy

In this article, we will learn about Lobb Numbers and how to find Lobb Number of m,n in C++. What is Lobb Number? Lobb number (Lm,n) calculates the number of ways that n+m open par.... Read More

Find nth element of Stern’s Diatomic Series in C++

By Abinash Reddy

In this article, we will learn how to find the nth element of Stern’s Diatomic Series in C++. Stern’s Diatomic Series is a sequence 1, 1, 2, 1, 3, 2, 3, 1, 4, 3, 5 …. whi.... Read More

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

Related Posts