CITADEL OA Internship 2025
Summary
Interview Experience
Given an integer n, calculate the total sum of all combinations C(i,j), where (1Function: int solve(int n)Example:int n = 3C(3,3) = 3 mod 3 + 3 mod 3 = 0 + 0 = 0C(3,2) = 3 mod 2 + 2 mod 3 = 1 + 1 = 2C(3,1) = 3 mod 1 + 1 mod 3 = 2 + 2 = 4C(2,3) = 2 mod 3 + 3 mod 2 = 1 + 1 = 2C(2,2) = 2 mod 2 + 2 mod ...


