Question bank › Math
Dsa Math Hard

Directional Quality Control

A quality control system checks items in two directions: North-South and East-West. The score of each item is calculated as the product of the two directional scores. Given the score arrays for both directions, calculate the total quality score as the sum of all possible products of pairs (one from each array). The input will be two lines, each containing integers separated by spaces. Print the total quality score. Example input: 2 3 4 1 5 6 Example output: 56

Key concepts

mathprobabilitystatistics

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.