Info
This question is closed. Reopen it to edit or answer.
could anyone help me how to fix this issue.
1 view (last 30 days)
Show older comments
If there are 10 users (say user1,user2 and goes on till user10) present how to group the users under the following conditions ->2 users should be present in each group. ->users present in one group should not be present in other group. and the possible number of combinations they can form.
7 Comments
Guillaume
on 20 Mar 2018
Edited: Guillaume
on 20 Mar 2018
"This was the code i need to fix it"
That doesn't like code that even attempt at doing what is being ask. The fix here is to start from scratch.
The whole purpose of this sort of homework exercice is to teach you how to design an algorithm that solve a particular problem. Going through the thought process required to solve the problem is the most important part of that task. If we give you the algorithm, then you will not have learnt that process. That would be a great disservice to you.
Once you have figured out the algorithm coding it is only a 5 minutes job.
Rik
on 20 Mar 2018
@Guillaume, I doubt this is a homework question. Prabha Kumaresan has posted an impressive number of questions about code very similar to this already.
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!