Rinish Patidar has Published 55 Articles

Count Numbers formed by given two Digit with Sum having given Digits

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:23:19

180 Views

The problem statement includes counting the numbers formed by the given two digits, x and y of size N with sum having given digits only i.e. x and y. We need to count the distinct numbers which can be formed by the digits, x and y which will be ... Read More

Corollaries of Binomial Theorem

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 21:07:46

315 Views

The Binomial Theorem describes how to expand an expression raised to any finite power. A binomial theorem is a powerful expansion tool that has applications in algebra, probability, and other fields. Assume we have an expression $\mathrm{(x\:+\:y)^n}$and we need to expand the expression, we can do this using the ... Read More

Ways to choose three points with distance between the most distant points <= L

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 20:58:49

231 Views

The problem states that we need to figure out the number of ways to choose three points with distance between the most distant points less than or equal to L, a positive integer that will be given as an input. In the problem we will be given an array ... Read More

Two Odd Occurring Elements in an Array where all Other Occur Even Times

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 20:50:41

351 Views

The problem includes finding two odd occurring elements in an array where all other elements occur even times in C++. An array is a data structure in C++ which is used to store a list of elements in it of similar data types. We will be given an array ... Read More

Sum of Product of r and rth Binomial Coefficient (r * nCr)

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 20:45:57

307 Views

The problem states that we must determine the sum of the product of r and the rth binomial coefficient (r*nCr). Positive numbers that are coefficients in the binomial theorem are called binomial coefficients. Both Pascal's triangle and a straightforward formula can be used to determine the binomial coefficients. ... Read More

Set the Rightmost Unset Bit

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 18:31:40

793 Views

The problem statement includes setting the rightmost unset bit of any positive integer N in C++. A bit is simply a binary digit of any number when represented in the form of a binary number. A binary number is the numerical representation of any data in the form of ... Read More

Subtract 1 Without Arithmetic Operators

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 18:30:20

584 Views

This problem includes that we need to subtract 1 without using arithmetic operators. We will be given any integer N as input in the problem and we need to subtract 1 from the number or simply we need to print N-1. Our task is to perform the operation without using ... Read More

Sorting of Vector of Tuple in C++ (Ascending Order)

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 18:12:03

2K+ Views

We will discuss sorting the vector of Tuple in C++ in ascending order in this article. A list of elements are stored in a C++ data structure known as a tuple. The same or different data types may be contained in it, and we may access them in the ... Read More

How to Turn on a Particular Bit in a Number?

Rinish Patidar

Rinish Patidar

Updated on 21-Aug-2023 18:04:56

296 Views

The problem statement says that we need to turn on a particular bit in a number. To put it simply, all we have to do is swap out a certain bit in a number for 1. Provide the same outcome if it has already been 1. You can represent ... Read More

Check if three Straight Lines are Concurrent or Not

Rinish Patidar

Rinish Patidar

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

391 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

Advertisements