EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic: Array Problem / Level: beginner
Problem:
Check if a 2D array is a magic square (where sums of rows, columns, and diagonals are equal).
More Problems
Find the trace of a square matrix (sum of diagonal elements).
Flatten a 2D array into a 1D array.
Reverse the diagonal elements of a 2D array.
Check if an array of strings contains any palindromes.
Find the difference between the maximum and minimum elements of each row in a 2D array.
Find the largest element in an array that is smaller than the average of all elements.
Calculate the sum of the absolute differences of consecutive elements in an array.
Find the average of the elements in each row of a 2D array.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...