Skip to content

Instantly share code, notes, and snippets.

@SuvroBaner
Created September 4, 2019 05:16
Show Gist options
  • Save SuvroBaner/e37a7133d631be6723460f74a17e7a46 to your computer and use it in GitHub Desktop.
Save SuvroBaner/e37a7133d631be6723460f74a17e7a46 to your computer and use it in GitHub Desktop.
def function1(n):
a = 0
for (i = 0; i < n; i += 1):
for (j = 0; j < n; j += 1):
a += 1
return a
def function2(n):
a = 0
for (i = 0; i < n; i += 1):
a += n
return a
def function3(n):
return n * n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment