Posts by Abinash Reddy

Author Biographical Info: Deeply interested in Machine Learning, Deep Learning, and Software Development

MasterCard number validation using Regular Expression in Python

By Abinash Reddy

In this article, we will learn how to check whether the given string is a valid MasterCard number or not using Regular Expression in Python. A valid MasterCard number must satisfy .... Read More

Find the type of triangle with given sides in Python

By Abinash Reddy

In this article, we will learn how to find the type of triangle with given sides in Python. Let a, b, c represent the sides of the triangle. Examples Input: a = 5, b = 4, c = 3 Out.... Read More

Count pair in an array whose product is divisible by k in Python

By Abinash Reddy

In this article, we will learn how to count the pair in an array whose product is divisible by k in Python. Examples Input: arr[] = {2, 3, 5, 8, 9}      k = 4 Output: 4 Explanat.... Read More

Minimum number of steps to reach M from N in Python

By Abinash Reddy

In this article, we will learn how to find the minimum number of steps to reach M from N in Python. We are going to use only two operations to reach M from N. Multiply a number a b.... Read More

Python Program to Print Trinomial Triangle

By Abinash Reddy

In this article, we will learn how to print a trinomial triangle in Python. A Trinomial triangle is a variety of Pascal’s triangle. The distinction between the two is that a .... Read More

Maximum value of XOR among all triplets of an array in Python

By Abinash Reddy

In this article, we will learn how to find the maximum value of XOR among all the triplets of an array in Python. XOR is a logical operation the yield true when both the input of o.... Read More

C++ program to check whether a number is Trojan Number

By Abinash Reddy

In this article, we will learn how to check whether a given number is a Trojan Number or not in C++. A number is said to be a trojan number if it is a strong number but not a perfe.... Read More

Generating Lyndon words of length n in Python

By Abinash Reddy

In this article, we will learn how to generate Lyndon words of a specified length n in Python. A Lyndon word is a non empty string that is strictly smaller in lexicographix oreder .... Read More