## Enneacontagon Number

Given a number N, the task is to find Nth Enneacontagon number. A Enneacontagon number. is class of figurate number. It has 90 – sided… Read More »

- Product of all Subarrays of an Array
- Must do Math for Competitive Programming
- Perfect Sum Problem
- How is the time complexity of Sieve of Eratosthenes is n*log(log(n))?
- Pi(π) in C++ with Examples
- Check whether a number can be represented as difference of two squares
- Modulo Operator (%) in C/C++ with Examples
- Count of subsets with sum equal to X using Recursion
- Maximum number of unique values in the array after performing given operations
- Count of subarrays having exactly K perfect square numbers
- Sum of GCD of all possible sequences
- Find the numbers from 1 to N that contains exactly k non-zero digits
- Logarithm tricks for Competitive Programming
- Program to calculate Electricity Bill
- Longest sub-array with maximum GCD
- Count of subarrays which start and end with the same element
- Puzzle | Dividing a Square into N smaller squares
- Maximum GCD of all subarrays of length at least 2
- Minimize the maximum difference of adjacent elements after at most K insertions
- Find K distinct positive odd integers with sum N
- Maximum profit by buying and selling a share at most K times | Greedy Approach
- Longest Mountain Subarray
- Digital Root of a given large integer using Recursion
- Expected Number of Trials to get N Consecutive Heads
- Count number of pairs with positive sum in an array
- Program to calculate Percentile of a student based on rank
- Find the minimum number to be added to N to make it a prime number
- Probability of getting K heads in N coin tosses
- Minimum window size containing atleast P primes in every window of given range
- Find the count of mountains in a given Matrix

Given a number N, the task is to find Nth Enneacontagon number. A Enneacontagon number. is class of figurate number. It has 90 – sided… Read More »

Given a positive integer N, the task is to check whether the given number is good prime or not. If the given number is good… Read More »

Given a positive integer N, the task is to check if N is a Balanced Prime number or not. In number theory, a Balanced Prime… Read More »

Given an integer N, the task is to check if it is a Tridecagonal number or not. Tridecagon number is a thirteen-sided polygon. The first… Read More »

Given a number N, the task is to find Nth Triacontakaidigon number. A Triacontakaidigon number is class of figurate number. It has 32 – sided… Read More »

Given an integer N, the task is to check if it is a Icosihenagonal number or not. Icosihenagonal number is class of figurate number. It… Read More »

Given an integer N, the task is to check if it is an Icositrigonal number or not. Icositrigonal number is a class of figurate number.… Read More »

Given a number N, the task is to find Nth Icosihexagon number. An Icosihexagon number is class of figurate number. It has 26 – sided… Read More »

Given a number N, the task is to find Nth Icosioctagon number. An Icosioctagon number is class of figurate number. It has 28 – sided… Read More »

Given a number N, the task is to find Nth Octacontagon number. A Octacontagon numberr is class of figurate number. It has 80 – sided… Read More »

Given a number N, the task is to find Nth hectagon number. A hectagon number is class of figurate number. It has 100 – sided… Read More »

Given a number N, the task is to find Nth Tetracontagon number. A Tetracontagon number is class of figurate number. It has 40 – sided… Read More »

Given a number N, the task is to find Nth Pentacontagon number. A Pentacontagon number is class of figurate number. It has 50 – sided… Read More »

Given four integers A, B, C, and D, the task is to find the number of distinct sets (X, Y, and Z) where X, Y… Read More »

Given an array A of non-zero integers, the task is to find the number of pairs (l, r) where (l <= r) such that A[l]*A[l+1]*A[l+2]….A[r]… Read More »