Commit 07b4685
IanDoarn
# Updates
- data_structures
- Updated __init__.py
- graph.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Removed redundant import statments in methods
- Updated syntaxing for PEP8 compliance
- Updated conditional sytaxing
- Removed camel casing from variable and parameter names
- Updated _union() and _set_of() in WeightedGraph() class to make them private
- Added self.forest to __init__() or WeightedGraph() class
- Updated _topological_sort_rec() in TopologicalSort() class to make it private
- Updated _check_cycle_rec() in CheckCycleDirectedGraph() class to make it private
- Updated _check_cycle_rec() in CheckCycleUndirectedGraph() class to make it private
- string
- anagram.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Fixed indentations in is_anagram()
- Updated syntaxing for PEP8 compliance
- palindrome.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Optimized code of is_palindrome
- isogram.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Optimized code of is_isogram
- pangram.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Optimized code in is_pangram
- fibonacci
- generator.py
- Updated syntaxing for PEP8 compliance
- Updated parameter name on nested function sequence(), it was shadowing outer functions parameter name
- goldenratio.py
- Updated syntaxing for PEP8 compliance
- Functions no longer nested
- math
- lcm.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Updated code to prevent variables from shadowing method names
- lcm_using_gcd.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Updated code to remove camel casing on parameter names
- sieve_of_eratosthenesd.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Removed redundant parenthesis in conditionals
- Optimized conditionals
- searching
- binary_search.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Updated code in binary_search
- breadth_first_search.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- depth_fist_seach.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Updated code in depth_first_search
- linear_search.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- Removed camel casing from variable and parameter names
- quick_select.py
- Updated docstrings at top of file
- Updated docstrings for functions
- Optimized import statements
- Updated syntaxing for PEP8 compliance
- moved nested functions out of search()
Signed-off-by: IanDoarn <[email protected]>1 parent dcfde41 commit 07b4685
File tree
22 files changed
+605
-304
lines changed- pygorithm
- data_structures
- fibonacci
- math
- searching
- string
22 files changed
+605
-304
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments