Required Problems

In this section, you are required to complete the problems below and submit your code to OJ website as instructed in lab00 to get your answer scored.

Remember, you can use ok to test your code:

$ python ok  # test functions
$ python ok -q <function>  # test single function