Q.1 What is an algorithm? What are the characteristics of a good algorithm?
Q.2 How do you find the complexity of an algorithm? What is the relation between the time and space complexities of an algorithm? Justify your answer with an example.