Skip to content

Commit 07b4685

Browse files
author
IanDoarn
committed
# 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

22 files changed

+605
-304
lines changed

CONTIRBUTORS.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Contributors:
22

3-
- Mohamed 'MohamedKiouaz' Kiouaz
4-
- Ashutosh 'ashu01' Gupta
5-
- Allston 'AllstonMickey' Mickey
6-
- Dmytro 'dmytrostriletskyi' Striletskyi
7-
- Emett 'the-kid89' Speer
8-
- Viktor 'vhag' Hagstrom
9-
- Dion 'kingdion' Misic
10-
- Chandan 'crowchirp' Rai
11-
- Jae Hyeon 'skystar-p' Park
12-
- dstark85
13-
- Songzhuozhuo 'souo'
14-
- Emil 'Skeen' Madsen
3+
- Mohamed '[MohamedKiouaz](https://github.com/MohamedKiouaz)' Kiouaz
4+
- Ashutosh '[ashu01](https://github.com/ashu01)' Gupta
5+
- Allston '[AllstonMickey](https://github.com/AllstonMickey)' Mickey
6+
- Dmytro '[dmytrostriletskyi](https://github.com/dmytrostriletskyi)' Striletskyi
7+
- Emett '[the-kid89](https://github.com/the-kid89)' Speer
8+
- Viktor '[vhag](https://github.com/vhag)' Hagstrom
9+
- Dion '[kingdion](https://github.com/kingdion)' Misic
10+
- Chandan '[crowchirp](https://github.com/crowchirp)' Rai
11+
- Jae Hyeon '[skystar-p](https://github.com/skystar-p)' Park
12+
- [dstark85](https://github.com/dstark85)
13+
- Songzhuozhuo '[souo](https://github.com/souo)'
14+
- Emil '[Skeen](https://github.com/Skeen)' Madsen
15+
- Ian '[IanDoarn](https://github.com/IanDoarn)' Doarn

pygorithm/__init__.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@
2525
dstark85
2626
Songzhuozhuo 'souo'
2727
Emil 'Skeen' Madsen
28+
Ian 'IanDoarn' Doarn
2829
2930
"""
3031
from pygorithm import data_structures
3132
from pygorithm import fibonacci
3233
from pygorithm import math
3334
from pygorithm import searching
3435
from pygorithm import sorting
36+
from pygorithm import string
3537

3638
__version__ = '1.0.0'
3739
__author__ = 'Omkar Pathak'
@@ -54,13 +56,15 @@
5456
"Jae Hyeon 'skystar-p' Park",
5557
"dstark85",
5658
"Songzhuozhuo 'souo'",
57-
"Emil 'Skeen' Madsen"
59+
"Emil 'Skeen' Madsen",
60+
"Ian 'IanDoarn' Doarn"
5861
]
5962

6063
__all__ = [
6164
'data_structures',
62-
'fibonacci',
63-
'math',
64-
'searching',
65-
'sorting'
65+
'fibonacci',
66+
'math',
67+
'searching',
68+
'sorting',
69+
'string'
6670
]

pygorithm/data_structures/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Collection of data structure examples
3+
"""
4+
from . import graph
5+
from . import heap
6+
from . import linked_list
7+
from . import queue
8+
from . import stack
9+
from . import tree
10+
11+
__all__ = [
12+
'graph',
13+
'heap',
14+
'linked_list',
15+
'queue',
16+
'stack',
17+
'tree'
18+
]

0 commit comments

Comments
 (0)