This file contains hidden or 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
[distutils] | |
index-servers = | |
pypi | |
pypitest | |
[pypi] | |
repository: http://pypi.python.org/pypi | |
username: <username> | |
password: <pass> |
This file contains hidden or 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
" .vimrc | |
" Author: Sriram Sundarraj (ssundarraj) | |
syntax on | |
set number | |
nmap <C-N><C-N> :set invnumber<CR> | |
set cursorline | |
colorscheme monokai | |
set laststatus=2 | |
set tabstop=2 |
This file contains hidden or 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
class LinkedListNode(object): | |
def __init__(self, data=None, next_node=None): | |
self.next_node = next_node | |
self.data = data | |
class LinkedList(object): | |
def __init__(self): | |
self.head = None |
This file contains hidden or 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
class BinaryTreeNode(object): | |
def __init__(self, data=None, left=None, right=None): | |
self.data = data | |
self.left = left | |
self.right = right | |
class TreeNode(object): | |
def __init__(self, data=None, children=[]): | |
self.data = data |
This file contains hidden or 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
graph = {'A': ['B', 'C'], | |
'B': ['C', 'D'], | |
'C': ['D'], | |
'D': ['C'], | |
'E': ['F'], | |
'F': ['C']} |
This file contains hidden or 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
# One Dimensional array: | |
n = 10 | |
a = [0] * n | |
# Two Dimensional array: | |
N = 5 | |
M = 4 | |
A = [[0] * N for _ in range(M)] |