organization in the src structure, modification of README

This commit is contained in:
Mari Wahl 2015-01-06 18:30:04 -05:00
parent c2ca11f247
commit 6afe96fa4d
165 changed files with 64 additions and 184 deletions

View File

@ -11,7 +11,7 @@ This repository contains a comprehensive study on Algorithms & Data Structures i
src/
── abstract_structures
── abstract_structures
├── heap
@ -21,33 +21,19 @@ src/
└── stacks
├── builtin_structures
├── arrays_and_strings
└── builtin_structures
├── dicts
├── lists
├── lists_and_strings
├── numbers
├── sets
├── strings
└── tuples
├── graphs_and_trees
├── trees
├── programming_paradigms
├── dynamic_programming
├── modules
└── oop
└── trees
└── searching_and_sorting
@ -57,6 +43,8 @@ src/
└── Extra Interview Problems
└── USEFUL
----
## Installation

View File

@ -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.
>>> 1 == 1

View File

@ -1,11 +1,12 @@
#!/usr/bin/python3
# mari von steinkirch @2013
# steinkirch at gmail
#!/usr/bin/python
__author__ = "bt3"
''' a simple example of how to time a function '''
import time
def sumOfN2(n):
''' a simple example of how to time a function '''
start = time.time()
theSum = 0
for i in range(1,n+1):

View File

@ -1,6 +1,6 @@
#!/usr/bin/python3
# mari von steinkirch @2013
# steinkirch at gmail
__author__ = "bt3"
from functools import wraps

View File

@ -1,7 +1,6 @@
#!/usr/bin/python3
# mari von steinkirch @2013
# steinkirch at gmail
__author__ = "bt3"
from itertools import combinations
from bisect import bisect

View File

@ -1,6 +1,8 @@
#!/usr/bin/python3
# mari von steinkirch @2013
# steinkirch at gmail
#!/usr/bin/env python
__author__ = "bt3"
import os
import sys

View File

@ -1,4 +1,8 @@
#!/usr/bin/python
__author__ = "bt3"
import collections
import string
import sys

View File

@ -1,9 +1,14 @@
#!/usr/bin/python
__author__ = "bt3"
import collections
import sys
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__':

View File

@ -1,6 +1,7 @@
#!/usr/bin/python3
# mari von steinkirch @2013
# steinkirch at gmail
#!/usr/bin/env python
__author__ = "bt3"
import sys

View File

@ -1,6 +1,7 @@
#!/usr/bin/python3
# mari von steinkirch @2013
# steinkirch at gmail
#!/usr/bin/env python
__author__ = "bt3"

Some files were not shown because too many files have changed in this diff Show More