Company: Tavant__
Difficulty: medium
Q1. Largest Factorial Number Problem Description There is an integer x . Let y be the multiplication of the factorial of each digit of x . We have to find the largest number such that the multiplication of the factorial of each of its digits equals y . Return that largest number. Note: In the answer, the digits 0 and 1 will not be considered. Examples Example 1: Input: x = 34 Output: 3322 Explanation: First, calculate y for x = 34: 3! * 4! = 6 * 24 = 144. We need to find the largest number whose digits' factorials multiply to 144. The number 3322 gives 3! * 3! * 2! * 2! = 6 * 6 * 2 * 2 = 144. This is the largest such number. Q2. Interior Square Root Pairs Problem Description There are 2 values bound_x and bound_y . We have to find the number of pairs (x, y) such that 1 and 1 which satisfy the condition that (x^(1/2) + y^(1/2))^2 is an integer. Simplifying the expression: (√x + √y)² = x + y + 2√(xy) . For this to be an integer, x * y must be a perfect square. Constraints 1 Examples Exam