You are viewing a single comment's thread. Return to all comments →
In test case 5, the given input is 3 2 3 2
Why not [0,3,0] is not in the expected outcome as the sum is not equal to N i.e. 2 ???
Not only that, but also
[[0, 3, 0], [0, 3, 1], [0, 3, 2], [0, 3, 3], [1, 3, 0], [1, 3, 1], [1, 3, 2], [1, 3, 3], [2, 3, 0], [2, 3, 1], [2, 3, 2], [2, 3, 3], [3, 3, 0], [3, 3, 1], [3, 3, 2], [3, 3, 3]
are with in the grid and sum not equal to N i.e. 2.
Seems like cookies are disabled on this browser, please enable them to open this website
List Comprehensions
You are viewing a single comment's thread. Return to all comments →
In test case 5, the given input is 3 2 3 2
Why not [0,3,0] is not in the expected outcome as the sum is not equal to N i.e. 2 ???
Not only that, but also
[[0, 3, 0], [0, 3, 1], [0, 3, 2], [0, 3, 3], [1, 3, 0], [1, 3, 1], [1, 3, 2], [1, 3, 3], [2, 3, 0], [2, 3, 1], [2, 3, 2], [2, 3, 3], [3, 3, 0], [3, 3, 1], [3, 3, 2], [3, 3, 3]
are with in the grid and sum not equal to N i.e. 2.