Clarify Q93 wording: at least one element per row, fixes #226

This commit is contained in:
Preetham V R
2026-08-21 13:10:15 +05:30
parent 6cedcb2ad9
commit dc143aa1ab

View File

@@ -1444,7 +1444,7 @@ x = np.random.rand(int(5e7))
%timeit np.einsum('i,i,i->i',x,x,x) %timeit np.einsum('i,i,i->i',x,x,x)
< q93 < q93
Consider two arrays A and B of shape (8,3) and (2,2). How to find rows of A that contain elements of each row of B regardless of the order of the elements in B? (★★★) Consider two arrays A and B of shape (8,3) and (2,2). How to find rows of A that contain at least one element of each row of B regardless of the order of the elements in B?
< h93 < h93
hint: np.where hint: np.where