Posts by Abinash Reddy
Author Biographical Info: Deeply interested in Machine Learning, Deep Learning, and Software Development
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
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
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
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
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
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
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
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