This repository contains Sem2 2023 solutions. This is a follow up to the Comp1602 past paper practise repo I worked on with Paul Taylor.
https://github.com/carrot2803/comp1602.git
Each past paper is organized by year/month
, and each question is in the form qN, where N is the question number. The past paper in PDF format can also be found in the corresponding year/month
folder.
There are several ways to save this repository on your device. Two of these options include:
- Downloading repository as ZIP
- Running the following command in a terminal, provided the GitHub CLI has been previously installed:
git clone https://github.com/carrot2803/comp1603.git
Many students struggle with recursion, so some solutions were designed to be recursive to help improve their understanding and mastery of this concept.
These functions are not directly related to the problems being solved and are used to generate sample outputs in the main function.
The "new" keyword is used to dynamically allocate memory for nodes in linked lists, while the "boolalpha" function is used to print Boolean values as "true" or "false".
These functions are not covered in the course syllabus but are useful for convenient sample outputs.
If you find an error in any of the past paper questions, or you want to add more questions to the repository, feel free to contribute. You can fork the repository, make your changes, and submit a pull request. I appreciate any help in improving this repository. For example the addition of high quality comments.
If you have any questions, issues, or suggestions regarding the questions, please don't hesitate to contact me on Discord at carrot#8856 or join the support server at [https://discord.gg/TFEbHkCyT3].
I am not advertising or promoting this Discord server nor limiting access to it; it's simply a means to assist you. If you have me on WhatsApp, you can also tag me in the group chat or send me a direct message.