ChimPansky / 42_piscine_projects-april-2023-

1 stars 0 forks source link

recursive challenge #2

Closed vilvl closed 1 year ago

vilvl commented 1 year ago

wanna suggest u to find nice recursive solution for print comb n:
on each iteration u know ur current number and how many left
u start like this for 3-digit nums: print_next_digit(0, 3);
from inside loop 0 to 9, and call print_next_digit(i + 1, 2);
loop i + 1 to 9 and call (i + 1, 1) and so on
challenges are: stop conditions, commas, dealing with git
try to do this in the branch i created
feel free to close the merge request if u dont wanna do it)