Far away in Lonely lands of Punjab’s village there lived mathematically advanced guy. Let’s call him the lost guy because he remains lost in his Mathematical courses.One of the games he is Read more →
C++ Programs
155 postsGiven an array Arr[N] of integers, where N is the size of the array. Our task is to rearrange the array such that arr[i]%2 = i%2, in other words, the element at Read more →
Given an integer N, the task is to check if it is a enneacontagon number or not. enneacontagon number: is class of figurate number. It has 90 – sided polygon called enneacontagon. Read more →
Given a string of length, N finds the minimum number of characters needed to delete to make right and left shift of the remaining string equal. Examples : Input : str: "36363636" Read more →
Given a positive integer N, find the N-th triacontakaihenagonal number: the N-th polygonal number of a 31-sided polygon, the triacontakaihenagon. What is a triacontakaihenagonal number? Polygonal numbers count the dots in a Read more →
Given a positive integer N, find out whether N is a tetracontagonal number (also called a tetracontagon number): one of the numbers produced by 40-sided polygons. What is a tetracontagonal number? Polygonal Read more →
Given the Numerator and Denominator of N Rational Numbers, the task is to find the maximum Rational Number from the array. Examples: Input: N = 2 num[] = { 3, 3 } Read more →
Given an integer N, the task is to check if it is a pentacontagon number or not. Pentacontagon number is class of figurate number. It has 50 – sided polygon called pentacontagon. Read more →
Given an integer N, the task is to check if it is a Triacontakaidigon number or not. Triacontakaidigon number is class of figurate number. It has 32 – sided polygon called Triacontakaidigon. Read more →
Given an integer N, the task is to check if it is a hexacontagon number or not. Hexacontagon number is class of figurate number. It has 60 – sided polygon called hexacontagon. Read more →