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.
- Prepare
- Algorithms
- Implementation
- ACM ICPC Team
- Discussions
ACM ICPC Team
ACM ICPC Team
Sort by
recency
|
1253 Discussions
|
Please Login in order to post a comment
Using bitwise "|" and Binary is way more better to find max subject
*
My C Solution
This is so over the top, but I refuse to do it otherwise
def acmTeam(topic): # Write your code here combs = [ sum([ 1 if i=='1' or j=='1' else 0 for i, j in zip(s1, s2)]) for s1, s2 in combinations(topic, 2)] key_value = sorted(Counter(combs).items())[-1] return list(key_value)
my kotlin solution