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.
Since what is required is a MULTISET ( can contain duplicates ) that can be formed from the elements of the initial array ( not specified that should only be used once, meaning an element can be selected multiple times for a multiset ), then the result is : an infinite number of multisets. If the elements should only be used once, then what is the reason for the MULTISET specification ?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Prime XOR
You are viewing a single comment's thread. Return to all comments →
Since what is required is a MULTISET ( can contain duplicates ) that can be formed from the elements of the initial array ( not specified that should only be used once, meaning an element can be selected multiple times for a multiset ), then the result is : an infinite number of multisets. If the elements should only be used once, then what is the reason for the MULTISET specification ?