Sort 265 Discussions, By:
Please Login in order to post a comment
# Write your code here
Python 3, using tdd approach.
"""(int) -> int
n-number of colors in a bin, return many socks
need to be removed to be certain of having a matching pair.
return n+1 if n > 0 else 0
if __name__ == '__main__':
The problem is kinda trivial, but the problem statement is kinda confusing, maybe replace the word "remove" with a more suitable word.