Open vilvl opened 1 year ago
u sure? in the subject it says: • Create a function that displays all different combinations of n numbers by ascending order. • n will be so that : 0 < n < 10.
anyway for n =10 there would be only 1 solution: {0123456789}
subject lies to u! dont trust the subject. make it work for n = 10 or u will die in 7 days
well, thank god, i am not superstitious :D
https://github.com/ChimPansky/42vienna/blob/1fbf8d0e10c40ed62d62aae1df7e148b2b844a28/C00/ex08/ft_print_combn.c#L74
should also work with 10