20 - solution returns index of 101st element
greenovid opened this issue · 6 comments
greenovid commented
In question 20, it is assumed that the 100th element is at index 100, which is inconsistent with question 6, where the 5th element is assumed to be at index 4.
rougier commented
You're right. Can you provide a PR ?
SebastianoF commented
An option could be changing the answer in:
20. Consider a (6,7,8) shape array, what is the index (x,y,z) of the 100th element?
np.unravel_index(99, (6,7,8))
rougier commented
You're right. Could you make a PR?
quq99 commented
in .pynb file it is still np.unravel_index(100, (6,7,8))
Renelvon commented
This issue has been fixed. Maybe close it? :)