Rinish Patidar has Published 56 Articles

Check if three Straight Lines are Concurrent or Not

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 17:53:02

137 Views

The problem includes checking if the three given straight lines are concurrent or not. If all three lines in a plane pass through the same point, they are said to be concurrent. They must intersect with each other exactly at one point to be concurrent. The three concurrent ... Read More

Check whether a very large number of the given form is a multiple of 3

Rinish Patidar

Rinish Patidar

Updated on 21-Jun-2023 12:28:28

216 Views

The problem statement includes checking whether a K-sized very long positive integer is the multiple of 3 or not where each ith digit in the K-sized number where i>1 will be the sum of all the prefix digits modulo 10 from the left. We will be given two integers a0 ... Read More

Check whether a number is Emirpimes or not

Rinish Patidar

Rinish Patidar

Updated on 21-Jun-2023 12:26:20

166 Views

The problem statement includes checking whether a number is Emirprimes or not, where the positive integer N will be the user input. An Emirpimes number is a semiprime number whose when digits are being reversed, gives a new number which too is a semiprime number. A semiprime number is a ... Read More

Blum Integer

Rinish Patidar

Rinish Patidar

Updated on 21-Jun-2023 12:23:24

146 Views

The problem statement includes checking the given numbers which will be the user input, if it is a Blum number or not. A Blum integer is a semiprime number whose distinct prime factors a and b are of the form 4t+3, where t is some positive integer. A semiprime number ... Read More

Position of n among the numbers made of 2, 3, 5 & 7

Rinish Patidar

Rinish Patidar

Updated on 18-Apr-2023 15:36:38

200 Views

The problem statement includes printing the position of n among the numbers made of 2, 3, 5 and 7, where n will be any positive number given by the user. The numbers made of 2, 3, 5 and 7 means this will be the sequence of the strictly increasing numbers ... Read More

Java Math incrementExact(int x) method

Rinish Patidar

Rinish Patidar

Updated on 18-Apr-2023 15:31:52

111 Views

We will explore Java Math incrementExact(int x) method by using the function in Java and understanding its different functionalities. An incrementExact() function is an in-built function in Java in the Math library. This function is used to return a value equal to the parameter passed in the function increased by ... Read More

Level order traversal with direction change after every two levels(Implementation in C/C++)

Rinish Patidar

Rinish Patidar

Updated on 20-Mar-2023 16:06:06

107 Views

Level Order TraversalThis is one of the algorithms that processes or prints all nodes of a binary tree by traversing through depth, starting at the root and moving on to its children and so forth.Example INPUT − OUTPUT − 2 4 7 3 6 11 ... Read More

Vieta’s Formulas

Rinish Patidar

Rinish Patidar

Updated on 16-Mar-2023 11:01:17

2K+ Views

In mathematics, Vieta’s formulas are the concept of polynomials which relates a polynomial’s coefficients to the sums and products of the roots of the polynomial. Vieta’s formulas can be useful tools for learning relations between the polynomial’s roots without really knowing their numerical value and coefficients of the equation. We ... Read More

Subsequence of size k with maximum possible GCD

Rinish Patidar

Rinish Patidar

Updated on 16-Mar-2023 10:58:17

533 Views

The problem statement says we will be given an array as input and a positive integer K, we need to figure out the maximum possible gcd(greatest common divisor) of a ksized subsequence of an array in this problem. It can be solved using different algorithms to find gcd of the ... Read More

Smarandache-Wellin Sequence

Rinish Patidar

Rinish Patidar

Updated on 16-Mar-2023 10:55:17

218 Views

The problem includes printing first m terms of Smarandache-Wellin Sequence where m is any positive integer. We will see the algorithm to print the first m term of Smarandache-Wellin Sequence in C++. But before that we must know about the Smarandache-Wellin sequence. A Smarandache-Wellin sequence is a sequence of Smarandache-Wellin ... Read More

Advertisements