Skip to content

Instantly share code, notes, and snippets.

@dogac00
Created March 13, 2018 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogac00/a9ce10b1900e8dbcfcc293d2311fcff8 to your computer and use it in GitHub Desktop.
Save dogac00/a9ce10b1900e8dbcfcc293d2311fcff8 to your computer and use it in GitHub Desktop.
Is my friend cheating on @codewars
def removNb(n):
result=[]
for a in range(1,n+1):
for b in range(1,n+1):
if(a*b==(n*(n+1)/2-a-b)):
result.append((a,b))
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment