Does correct output meet a programming assignment that specifically asks for recursion?
EducationMy program gives the expected output for the examples in our introductory computing assignment. I wrote it with a loop because that was the method I could explain clearly. Reading the brief again, I noticed it explicitly asks for a recursive solution.
The automatic checker shows a pass for the examples, which makes me reluctant to disturb working code. But I have not demonstrated the technique the task names. CS50's lecture notes distinguish a recursive function, which calls itself, from an iterative approach.
What is a sensible next step before submission? I want to use the working version to help me learn the requested method, without copying a replacement I do not understand or assuming that a passing output check settles the marking.