# Tag Archives: Fraction

Consider the set of irreducible fractions A = {n/d | nâ‰¤d and d â‰¤ 10000 and gcd(n, d) = 1}. You are given a memberâ€¦ Read More
Fraction is defined as the part of a whole. Fraction is used not only in mathematics but in real life frequently. The ancient Egyptians wereâ€¦ Read More
Given three integers x, y, and n, the task is to find such a pair of integers a, â€‰b (1â€‰<=â€‰bâ€‰<=â€‰n; 0â€‰<=â€‰a) that the value |x/yâ€¦ Read More
Given two positive integers N and D representing a fraction as N/D, the task is to split the fraction into the sum of multiple fractionsâ€¦ Read More
Given two strings S and T representing non-negative rational numbers, the task is to check if the values of S and T are equal orâ€¦ Read More
Given two arrays arr1[] and arr2[] of length N which contains Numerator and Denominator of N fractions respectively, the task is to count the numberâ€¦ Read More
Given an array arr[], the task is to count the pairs in the array such that arr[i]/arr[j] is a Pandigital Fraction. A fraction N/D isâ€¦ Read More
Pre-requisite: Fractional Knapsack Problem Given two arrays weight[] and profit[] the weights and profit of N items, we need to put these items in aâ€¦ Read More
Given a decimal number as N, the task is to convert N into an equivalent irreducible fraction. An irreducible fraction is a fraction in whichâ€¦ Read More
Given an integer N, the task is to print all proper fractions such that the denominator is less than or equal to N.  Proper Fractions:â€¦ Read More
Given two arrays num[] and den[] which denotes the numerator and denominator respectively, the task is to find the count of the unique fractions. Examples: â€¦ Read More
Given a fraction N/D, the task is to split this fraction into N parts such that their sum is equal to the fraction N/D, i.e., Note:â€¦ Read More
Given three integers P, Q and N where P < Q, the task is to compute the fraction value of P / Q and findâ€¦ Read More
Given an integer N, the task is to print the first N terms of the series in their fraction form i.e.   1/4, 1/2, 3/4, 1,â€¦ Read More
A fraction is a ratio of two values. Fractions have the form a/b where a is called the numerator, b is called the denominator andâ€¦ Read More