mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-30 04:36:08 -04:00
organization in the src structure, modification of README
This commit is contained in:
parent
c2ca11f247
commit
6afe96fa4d
24
README.md
24
README.md
@ -11,7 +11,7 @@ This repository contains a comprehensive study on Algorithms & Data Structures i
|
|||||||
|
|
||||||
src/
|
src/
|
||||||
|
|
||||||
├── abstract_structures
|
└── abstract_structures
|
||||||
|
|
||||||
├── heap
|
├── heap
|
||||||
|
|
||||||
@ -21,33 +21,19 @@ src/
|
|||||||
|
|
||||||
└── stacks
|
└── stacks
|
||||||
|
|
||||||
├── builtin_structures
|
└── builtin_structures
|
||||||
|
|
||||||
├── arrays_and_strings
|
|
||||||
|
|
||||||
├── dicts
|
├── dicts
|
||||||
|
|
||||||
├── lists
|
├── lists_and_strings
|
||||||
|
|
||||||
├── numbers
|
├── numbers
|
||||||
|
|
||||||
├── sets
|
├── sets
|
||||||
|
|
||||||
├── strings
|
|
||||||
|
|
||||||
└── tuples
|
└── tuples
|
||||||
|
|
||||||
├── graphs_and_trees
|
└── trees
|
||||||
|
|
||||||
├── trees
|
|
||||||
|
|
||||||
├── programming_paradigms
|
|
||||||
|
|
||||||
├── dynamic_programming
|
|
||||||
|
|
||||||
├── modules
|
|
||||||
|
|
||||||
└── oop
|
|
||||||
|
|
||||||
└── searching_and_sorting
|
└── searching_and_sorting
|
||||||
|
|
||||||
@ -57,6 +43,8 @@ src/
|
|||||||
|
|
||||||
└── Extra Interview Problems
|
└── Extra Interview Problems
|
||||||
|
|
||||||
|
└── USEFUL
|
||||||
|
|
||||||
|
|
||||||
----
|
----
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
__author__ = "bt3"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
The doctest module automatically runs any statement begining with >>>
|
The doctest module automatically runs any statement beginning with >>>
|
||||||
and compares the following line with the output from the interpreter.
|
and compares the following line with the output from the interpreter.
|
||||||
|
|
||||||
>>> 1 == 1
|
>>> 1 == 1
|
@ -1,11 +1,12 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python
|
||||||
# mari von steinkirch @2013
|
|
||||||
# steinkirch at gmail
|
__author__ = "bt3"
|
||||||
|
|
||||||
|
''' a simple example of how to time a function '''
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
def sumOfN2(n):
|
def sumOfN2(n):
|
||||||
''' a simple example of how to time a function '''
|
|
||||||
start = time.time()
|
start = time.time()
|
||||||
theSum = 0
|
theSum = 0
|
||||||
for i in range(1,n+1):
|
for i in range(1,n+1):
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# mari von steinkirch @2013
|
|
||||||
# steinkirch at gmail
|
__author__ = "bt3"
|
||||||
|
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# mari von steinkirch @2013
|
|
||||||
# steinkirch at gmail
|
|
||||||
|
|
||||||
|
__author__ = "bt3"
|
||||||
|
|
||||||
from itertools import combinations
|
from itertools import combinations
|
||||||
from bisect import bisect
|
from bisect import bisect
|
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python
|
||||||
# mari von steinkirch @2013
|
|
||||||
# steinkirch at gmail
|
|
||||||
|
__author__ = "bt3"
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
@ -1,4 +1,8 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
__author__ = "bt3"
|
||||||
|
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import string
|
import string
|
||||||
import sys
|
import sys
|
@ -1,9 +1,14 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
__author__ = "bt3"
|
||||||
|
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def count_unique_word_freq():
|
def count_unique_word_freq():
|
||||||
return collections.Counter(sys.stdin.read().lower().split()).most_common(n)
|
return collections.Counter(\
|
||||||
|
sys.stdin.read().lower().split()).most_common(n)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python
|
||||||
# mari von steinkirch @2013
|
|
||||||
# steinkirch at gmail
|
|
||||||
|
__author__ = "bt3"
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env python
|
||||||
# mari von steinkirch @2013
|
|
||||||
# steinkirch at gmail
|
|
||||||
|
__author__ = "bt3"
|
||||||
|
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user