Kira:
You mentioned things (map, foldr, ...) that you're not permitted to use,
but I don't know the full homework requirements. If your professor did not
preclude the built-in permutations function, you could use that as a way of
teaching your professor to communicate the requirements more
Stepping through the code with the drracket debugger and inspecting the
values on the way may also be a good way to identify areas where your code
doesn't work like you had expected.
Maybe write some more testcases / example applications of your function and
see which inputs already work and
2 matches
Mail list logo