Rinish Patidar has Published 56 Articles

Given a Number N in Decimal Base, find Number of its Digits in any Base (base b)

Rinish Patidar

Rinish Patidar

Updated on 28-Aug-2023 15:25:51

90 Views

The problem statement includes finding the number of digits in N when represented in any base b numeral system. Initially, N is given in the base−10 numeral system. In the problem, we will be provided with a positive integer N in the input which will be in the base−10 numeral ... Read More

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

Rinish Patidar

Rinish Patidar

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

71 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

130 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

86 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

142 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

99 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

174 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

214 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

730 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

108 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

Advertisements