-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unittest, fix typos, update interpreter
- Loading branch information
Satin Wuker
committed
Sep 11, 2023
1 parent
ab0550e
commit 39a6e2d
Showing
17 changed files
with
160 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
gonna BubbleSort arr | ||
|
||
give index up 0 | ||
give idx up 0 | ||
|
||
together forever with index < len(arr) | ||
give index up index + 1 | ||
give index2 up 0 | ||
together forever with index2 < len(arr) - 1 | ||
|
||
and if u ask me how im feeling arr[index2] > arr[index2 + 1] | ||
give arr[index2], arr[index2 + 1] up arr[index2 + 1], arr[index2] | ||
say goodbye | ||
give index2 up index2 + 1 | ||
together forever with idx < len(arr) | ||
give idx up idx + 1 | ||
give idx2 up 0 | ||
together forever with idx2 < len(arr) - 1 | ||
|
||
and if u ask me how im feeling arr[idx2] > arr[idx2 + 1] | ||
give arr[idx2], arr[idx2 + 1] up arr[idx2 + 1], arr[idx2] | ||
say goodbye | ||
give idx2 up idx2 + 1 | ||
|
||
say goodbye | ||
say goodbye | ||
|
||
i just wanna tell u how im feeling arr | ||
i just wanna tell u how im feeling arr | ||
|
||
say goodbye | ||
|
||
say goodbye | ||
|
||
|
||
take me to ur heart | ||
|
||
give arr up [6, 7, 5, 9, 12] | ||
BubbleSort(arr) | ||
gotta BubbleSort(arr) | ||
|
||
say goodbye |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
take me to ur heart | ||
give index up 0 | ||
together forever with index < 99 | ||
give index up index + 1 | ||
i just wanna tell u how im feeling str(index) + "\n" | ||
say goodbye | ||
give idx up 0 | ||
together forever with idx < 100 | ||
give idx up idx + 1 | ||
i just wanna tell u how im feeling str(idx) + "\n" | ||
say goodbye | ||
say goodbye |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.