Sum of diagonal elements with count > 3
Filed under Fidelity Investments
The question
Given an n x n matrix, calculate the sum of diagonal elements that appear more than 3 times in the entire matrix.
No write-up yet. Related questions below have one.
Related Fidelity Investments questions
Collected from public candidate posts and coding forums. Updated Nov 2026.