Posts by William Richard • 19 points
1 post
-
-1
votes3
answers74
viewsQ: How to check how many times the number 2 appears inside a matrix?
My goal in this algorithm is to find how many times the number 2 appears within an 8x3 matrix. My result so far is like this: from collections import Counter import time import numpy as np m =…