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.
Because we do not need to iterate through all the numbers between nmax and nmain
We need to iterate through just the 'multiples of nmax' between the range of nmax to nmin. Because non-multiples of nmax are however not going to satisfy the conditions provided.
Hope, it helps you.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
Because we do not need to iterate through all the numbers between nmax and nmain
We need to iterate through just the 'multiples of nmax' between the range of nmax to nmin. Because non-multiples of nmax are however not going to satisfy the conditions provided.
Hope, it helps you.