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
|
1254 Discussions
|
Please Login in order to post a comment
Here is ACM ICPC Team solution in python, java, c++, c and javascript programming - https://programmingoneonone.com/hackerrank-acm-icpc-team-problem-solution.html
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)