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.
In problem it is mentioned that the S is distinct,however the next line shows that the given S has duplicate values. (In the provided example, the value 10 is repeated twice). Or did I misunderstood the problem?
Below is the values of S used in the Example.
S = [ 19, 10, 12, 10, 24, 25, 22]
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Non-Divisible Subset
You are viewing a single comment's thread. Return to all comments →
In problem it is mentioned that the S is distinct,however the next line shows that the given S has duplicate values. (In the provided example, the value 10 is repeated twice). Or did I misunderstood the problem?
Below is the values of S used in the Example.
S = [ 19, 10, 12, 10, 24, 25, 22]