Loading Company...
This is a verified interview question from Amazon-ml-summer-school. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Compute the Sum of Products of Factorials" covers key patterns like Other.
"Given an integer N and an array of N integers, compute the sum of products of factorials for all pairs of indices. The product of factorials for each pair is calculated as F(Ai) * F(Aj) * (Ai + Aj) modulo 998244353."
Join thousands of developers practicing for Amazon-ml-summer-school.