Prateek Jangid has Published 190 Articles

Find the Number of Quadrilaterals Possible from the Given Points using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 11:12:38

322 Views

A quadrilateral forms a polygon with four vertices and four edges in Euclidean plane geometry. The name 4-gon etc. Included in other names of quadrilaterals and sometimes they are also known as a square, display style, etc.In this article, we will explain the approaches to finding the number of quadrilaterals ... Read More

Find the Number of Primes In A Subarray using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 11:08:25

165 Views

In this article we will describe the ways to find the number of primes in a subarray. We have an array of positive numbers arr[] and q queries having two integers that denote our range {l, R} we need to find the number of primes in the given range. So ... Read More

Find the Number of Prime Pairs in an Array using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 11:03:12

238 Views

In this article, we will explain everything about finding the number of prime pairs in an array using C++. We have an array arr[] of integers, and we need to find all the possible prime pairs present in it. So here is the example for the problem −Input : arr[ ... Read More

Find the Number of Prefix Sum Prime in Given Range Query using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 08:03:58

185 Views

In this article, we need to find a number of prefix sum which are prime numbers in a given array arr[ ] of positive integers and range query L, R, where L is the initial index value arr[ L ] for prefixsum[ ] array and R is the number of ... Read More

Find the Number of Possible Pairs of Hypotenuse and Area to Form Right Angled Triangle using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 07:57:31

126 Views

In this article, we will explain how to solve the number of possible pairs of hypotenuse and area form a right-angled triangle in C++.We need to determine the number of all possible pairs of a hypotenuse and the area ( H, A ) to form a right-angled triangle with H ... Read More

Find the Number of permutation with K inversions using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 07:36:22

250 Views

In an array, A pair a[i], a[j] is known as an inversion if a[i] > a[j] and i < j. We have two numbers N and k, and need to figure out how many possible permutations of the first N numbers end in a perfect K inversion. So here is ... Read More

Find the Number of Pentagons and Hexagons on a Football using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 07:27:22

177 Views

As we all know, pentagons and hexagons are equally essential parts of football. These shapes fit together like a puzzle for forming a perfectly spherical shape. So here we have a football, in which we have to find the hexagons and pentagons.We will use the Euler characteristic to solve the ... Read More

Find the Number of Paths of Weight W in a K-ary tree using C++

Prateek Jangid

Prateek Jangid

Updated on 24-Nov-2021 07:22:58

101 Views

In this article, we'll use C++ to calculate the number of weight W paths in a K-ary tree in this article. We've given a K-ary tree, which is a tree in which each node has K children and each edge has a weight assigned to it, with weights descending from ... Read More

Find the Nth_Non_Square_Number using C++

Prateek Jangid

Prateek Jangid

Updated on 23-Nov-2021 10:35:55

145 Views

We all know about the numbers that are not square of any number like 2, 3, 5, 7, 8, etc. There are Nth numbers of non-square numbers, and it is impossible to know every number. So In this article, we will explain everything about the square-free number or non-square number ... Read More

Find the Nth Number Made Up of only Odd Digits using C++

Prateek Jangid

Prateek Jangid

Updated on 23-Nov-2021 10:35:12

453 Views

C++ has a huge list of functions to solve mathematical issues. One of the mathematical functions is to find Nth odd digits using codes. This article will describe the complete approach of finding the odd Nth number and understand what odd numbers are and what numbers are made up of ... Read More

Advertisements