Exercise 02 Solution

Written on 24.01.2023 15:31 by Paul Zhu

Dear Students,

We have uploaded a sample solution for Exercise 02, you can find it in the category Solutions under Information > Material. You can find your points for this exercise on your Personal Status page.


The solution package includes:

1. A reference implementation (

2. The test function (

3. The testcases and some explanations on how we grade your code (


If you didn't receive 10 points (full mark), you will find a feedback (download the .txt file) which reports the errors. When in doubt, test your implementation against the test commands (provided in the solution package) and compare that with the expected outputs produced by the reference implementation. Contact us if there is something wrong in the reported errors so we will double check them.

Privacy Policy | Legal Notice
If you encounter technical problems, please contact the administrators.