Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: cs1971ec2
channels:
- defaults
dependencies:
- python=3.9
- tqdm
prefix: /Users/tpradeep/miniconda3/envs/cs1971ec2
2 changes: 1 addition & 1 deletion number_of_ways.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def numberOfWays(startPos: int, endPos: int, k: int) -> int:
perform exactly k steps.
"""
# start with path of length 1
paths = [startPos]
paths = [[startPos]]

# loop k times
for i in tqdm(range(k)):
Expand Down
2 changes: 2 additions & 0 deletions rise.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("Rise & SHine")
print("lets get it started")