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 elements in a 2D matrix that are smaller than the diagonal elements with zero.
More Problems
Find the longest contiguous subarray with elements that have alternating parity (odd and even).
Find the number of contiguous subarrays where all elements are greater than the sum of their indices.
Check if all elements in an array are Fibonacci numbers.
Find the number of elements in an array that are both perfect squares and divisible by a given number.
Find the number of elements in an array that are multiples of their index.
Find the number of elements in an array that are divisible by both 2 and their index.
Find the row in a 2D matrix that contains the most negative numbers.
Count how many columns in a 2D matrix contain only prime numbers.
Python
Language
Editor
Run & Output
Save
AI Code Generate
AI Test Case
Run the code to see the output here...