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.
Sherlock and Permutations
Sherlock and Permutations
Sort by
recency
|
144 Discussions
|
Please Login in order to post a comment
Sherlock Holmes' deductive prowess navigates the intricate permutations of mystery with unparalleled brilliance. Lotus365 com
Solution without math namespace, Python3:
I have read some codes but i still cant understand why my code return the different result. Did it reach the limit of the long type? The results are either negative numbers or 0.
Can someone please help me understand why this doesn't work?
def solve(n, m): # Write your code here total = n+m
My solution in Python:
def solve(n, m):