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.
Really good solution. Although a little modification can be done to make it run faster. You need to calculate max_a and min_b instead and only need to care about the multiples of max_a instead of going through all the numbers in between.
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
Really good solution. Although a little modification can be done to make it run faster. You need to calculate max_a and min_b instead and only need to care about the multiples of max_a instead of going through all the numbers in between.