Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ambiguity in Q93? or maybe is some bias in my understanding? #226

Open
ryougishikifor214 opened this issue Jan 12, 2025 · 0 comments
Open

Comments

@ryougishikifor214
Copy link

93. 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? (★★★)

Does it mean that expected rows of A only need contain at least one element from each row of B?
In other words, expected rows of A are not necessary to contain every element from each row of B, which I initially thought? or the answer will not make sense.

Take the following as the example
image
the 7th row of A is [2, 4, 1],which contains 2 coming from 0th row of B and 1 coming from 1th row of B. Obviously [2,4,1] doesn't contain 3 which is the element of 0th row of B.

If my current thought is correct, I want to complain about the description of Q93. I think "at least one or more" should be added up to description in the midst of "contain elements"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant