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.
Just to note that the specification says 0 < A < 30 and 0 < B < 30.
At least one test case includes values of A that are 0 and if your code does not produce the cartesian product anyway it is marked wrong. Harrumph.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
itertools.product()
You are viewing a single comment's thread. Return to all comments →
Just to note that the specification says 0 < A < 30 and 0 < B < 30. At least one test case includes values of A that are 0 and if your code does not produce the cartesian product anyway it is marked wrong. Harrumph.