Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Write a component that determines whether a hardcoded matrix is symmetric and displays the result.

Hard

Problem Statement

Write a component that determines whether a hardcoded matrix is symmetric and displays the result.

Sample Input

[[1, 2, 3], [2, 4, 5], [3, 5, 6]]

Sample Output

Is Symmetric: true

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

import React from "react";
 
 const SymmetricMatrix = () => {
  return (
  <div>
  {/* Display whether the matrix is symmetric */}
  </div>
  );
 };
 
 export default SymmetricMatrix;