Help with planning a recursive function
Hi ,My name is Ron and I'm new here.
I would very welcome some help with an exercise. Some hints and ideas would be very helpful.
I have 'n' students and 'k' sits ,and I need to build a function (in C) that need to print
all the combinations ,while there are some rules:
* every two students must be divided by at least one sit;
* I must use an array of STUDENTS[I] , each cell contains only '0' or '1' ;
* the function must be recursive ,and contain no 'FOR' or 'WHILE' loops.
For example, n=5 ,k=2 the output would be :
any hints would be welcomed.
10x and good day.
|All times are GMT +5.5. The time now is 12:16.|