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:
Find the smallest element in an array that is greater than a given number x.
More Problems
Swap the even-indexed elements with the odd-indexed elements of an array.
Find the difference between the largest and smallest elements in an array.
Find the smallest positive missing number in an array.
Find the average of the elements in each column of a 2D array.
Multiply two 2D matrices together.
Check if a 2D array is a magic square (where sums of rows, columns, and diagonals are equal).
Find the trace of a square matrix (sum of diagonal elements).
Flatten a 2D array into a 1D array.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...