upGrad Coding Round | Calculate Triple Factor Modulo | Jan 13th | Recent Online Assessment 2026 | Triple Factorial Math Problem
Question · Posted Mar 2026
Question: Triple Factor Problem Statement: Mark wants to find the triple factorial of a given number N. A triple factorial of a number N is the product of positive numbers less than or equal to that number and congruent to N modulo 3. It means N!!! = N * (N-3) * (N-6) *... * (x+3) * x, where x is the smallest positive number which is congruent to N modulo 3. Print the triple factorial for a given number N. ...
The full answer & interview discussion are available to premium members.
Log in Create a free account