This repository contains the problems, solution approaches & explanations and (for some problems) psueodocode or C code to solve the problem. In general, this repository will be updated with the latest labsheet around 5-7 days after the last lab evaluation on that labsheet is complete. Directories a0, a1, ...
contain the solutions for the respective labsheets. A README/PDF file will be included in each of these, with the solution explanations for (atleast) some of the problems.
When submitting a pull request please make sure your file name is in the format (Problem Number)_(Your name).c. Since we'll be getting many solutions for each problem, this helps us keep track of each one and also people know who's code it is when they look at it. Please make sure the Problem number is first so that all the codes for one question will be together in the repo (The repo keeps files in alphabetical order)
Ex: F_pranav_reddy.c or F_pranavreddy.c
Please make sure that your code passes all possible test cases to the best of your ability. Refrain from posting solutions that you know are wrong. Also make sure that you are putting the solution in the correct assignment folder to avoid future confusion. We are currently accepting PRs for Assignments 1-8 only. If a certain question already has answers, please try to add another solution only if you believe your approach is significantly different/unique/more understandable.
C code for these questions is currently available:
Assignment | A | B | C | D | E | F | G | H | I | J |
---|---|---|---|---|---|---|---|---|---|---|
a0 | ✔️ | ➖ | ➖ | ➖ | ➖ | ➖ | ➖ | ➖ | ➖ | ➖ |
a1 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
a2 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
a3 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
a4 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
a5 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❔ |
a6 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
a7 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❔ | ✔️ |
a8 | ✔️ | ❔ | ❔ | ✔️ | ❔ | ❔ | ❔ | ✔️ | ❔ | ❔ |
a9 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ❔ | ✔️ | ❔ | ✔️ | ✔️ |
a10 | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ | ❔ |
If a problem doesn't have a solution so far (cross), or you feel that you can improve the current solution, please feel free to either (1) raise an issue (2) start a pull request with your changes or (3) contact a TA.
Your name will be listed here if you contribute a solution.