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.
Hi, we are using map only on set1 and set2 but not on array. I doubt this was causing the error.[(e in set1) - (e in set2) for e in arr] in this code we are getting false(0). You can use map on all three inputs(set1,set2 and array) which would give you desired result.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
No Idea!
You are viewing a single comment's thread. Return to all comments →
Hi, we are using map only on set1 and set2 but not on array. I doubt this was causing the error.[(e in set1) - (e in set2) for e in arr] in this code we are getting false(0). You can use map on all three inputs(set1,set2 and array) which would give you desired result.