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:
Replace all even numbers in an array with their square.
More Problems
Replace all odd numbers in an array with their cube.
Find the average of all prime numbers in an array.
Sort an array of integers using selection sort.
Find the row in a 2D matrix with the largest number of even elements.
Find the column in a 2D matrix with the largest number of odd elements.
Find the smallest element in an array that is greater than the average of the array.
Sort the elements of a 2D matrix by row.
Sort the elements of a 2D matrix by column.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...