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.
I used a very similar method for finding the number of topics a team knew, but a slightly more simplistic method for finding the maximum and number of team compositions for that number:
I think this method ends up being a bit more efficient, since you're generating a new list with the maximums, and then traversing that list twice to find the max, and then the count.
ACM ICPC Team
You are viewing a single comment's thread. Return to all comments →
I used a very similar method for finding the number of topics a team knew, but a slightly more simplistic method for finding the maximum and number of team compositions for that number:
I think this method ends up being a bit more efficient, since you're generating a new list with the maximums, and then traversing that list twice to find the max, and then the count.