Python exercises:
Please write the following functions: (in Python) 1) given two input lists L1 and L2,
write a function which selects all elements which are present both in L1 and in L2, and returns them in a list L3
2) compute the transposed matrix of a given input matrix of size NxN 3) given a rectangular input matrix M, write a function which
returns
a boolean value True if and only if there exist two different rows in M,
whose sum gives the null vector. Do the same for two different columns.
4) Compute the height of a tree
5) Compute the height of a node in a binary search tree 6) verify if two binary are equal
7) Given a not balanced binary search tre construct a balanced search tree with the same information.