Info
この質問は閉じられています。 編集または回答するには再度開いてください。
could anyone help me how to fix this issue.
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Guillaume
2018 年 3 月 20 日
編集済み: Guillaume
2018 年 3 月 20 日
"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
2018 年 3 月 20 日
@Guillaume, I doubt this is a homework question. Prabha Kumaresan has posted an impressive number of questions about code very similar to this already.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!