Skip to content

Commit

Permalink
3sumProf
Browse files Browse the repository at this point in the history
  • Loading branch information
s50600822 committed Mar 20, 2024
1 parent b16e2f4 commit d4a9bf9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions interview_prep/algorithm/java/ide_handicapped/3sum/gen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def generate_list(n):
num_list = list(range(-n, n + 1))
return num_list

def main():
n = int(input("Enter a value for n: "))
result = generate_list(n)
print(result)

if __name__ == "__main__":
main()
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d4a9bf9

Please sign in to comment.