posepr-c-2ihif-24-25-assignments-11-recursion-algos-11-Recursion_1 created by GitHub Classroom
| .gitignore | ||
| count_char.c | ||
| count_char.h | ||
| main_driver.c | ||
| makefile | ||
| Readme.md | ||
| reverse_string.c | ||
| reverse_string.h | ||
| shortcut.c | ||
| shortcut.h | ||
| sum_of_digits.c | ||
| sum_of_digits.h | ||
| test_count_char.c | ||
| test_count_char.h | ||
| test_driver.c | ||
| test_reverse_string.c | ||
| test_reverse_string.h | ||
| test_sum_of_digits.c | ||
| test_sum_of_digits.h | ||
IF.03.22 POSE - Procedural Programming
Assignment: Recursive vs. Iterative Algorithms
The assignment focusing on various problems that can be solved with an recursive as well as with an iterative algorithm.
Tasks
Implement the algorithms of the problems defined in the following files:
- sum_of_digits.c
- count_char.c
- reverse_string.c
Each problem shall be implemented using an recursive as well as an iterative algorithm. The functions are suffixed with '_recursive' and '_iterative' accordingly.
The detailed description can be found in the file header.
Note: The corresponding header files are basically complete and do not need to be changed, except of entering your name.
Expected result:
- All unit tests are passed
- Code is clean and follows coding guidelines
- Commit at least after implementing each single function