Basic 1:

Not the f*g Python code Generic

template <typename T>
void printArray(vector<T> v) {
    for(int i = 0; i < v.size(); i++) {
        cout << v[i] << "\n";
    }
}

Basic 2:

getHeight BST

def getHeight(self,root):
		#Write your code here
		if root == None:
				return -1
		else:
				return 1 + max(self.getHeight(root.left), self.getHeight(root.right))