Skip to content
Open

Fix #11

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: /opt/miniconda3/envs/cs197lec2
channels:
- defaults
dependencies:
- python=3.9
- tqdm
prefix: /opt/miniconda3/envs/cs197lec2
7 changes: 7 additions & 0 deletions environment_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: /opt/miniconda3/envs/cs197lec2
channels:
- defaults
dependencies:
- python=3.9
- tqdm
prefix: /opt/miniconda3/envs/cs197lec2
2 changes: 1 addition & 1 deletion number_of_ways.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_number_of_ways():

Input: startPos = 1, endPos = 2, k = 3
Output: 3
Explanation: We can reach position 2 from 1 in exactly 3 steps
Explanation: We can reach position 2 from 1 in exactly 3
in three ways:
- 1 -> 2 -> 3 -> 2.
- 1 -> 2 -> 1 -> 2.
Expand Down