We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The possible cases include 1, 2, or 3 dimensions. Therefore, m and p will not be defined for 1 or 2 dimensions - causing an error. The nums will be a tuple of whatever length the input is, i.e. (3, 3, 3) or (3, 2) or (3).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Zeros and Ones
You are viewing a single comment's thread. Return to all comments →
The possible cases include 1, 2, or 3 dimensions. Therefore,
m
andp
will not be defined for 1 or 2 dimensions - causing an error. Thenums
will be a tuple of whatever length the input is, i.e.(3, 3, 3)
or(3, 2)
or(3)
.