# PHP Script

SCENARIO:

There is are multiple business meetings happening at the same time, with 100 companies. Each company with 1 person.

And 10 tables. So we expect 5 people each table (5 chairs pre table).

After 10 minutes (finish this round), they change their chair/table. And a person cannot see another one which he has already met in previous meeting.

I need all available combinations, based on the input of number of tables, chairs per table and companies. All possible rounds must be returned.

It cannot be partially solved, ok?

----------------------------------------------

The result is the list of companies, by table, for every round. As many rounds as possible (remember that a company cannot meet another one which has already met).

Example: (8 participants, 3 tables with 3 chairs each).

participants = [c0,c1,c2,c3,c4,c5,c6,c7]

Round 1

table1 = [c0,c1,c2]

table2 = [c3,c4,c5]

table3 = [c6,c7]

Round 2

table1 = [c0,c3,c6]

table2 = [c1,c4,c7]

table3 = [c2,c5]

table1 = [c1,c0,c4] (1 and 0 already met in Round 1)

table 2 = [c3,c7,c2]

table 3 = [c5,c6]

Expected return:

result = [

'round1' =>[

[c0,c1,c2],

[c3,c4,c5],

[c6,c7]

],

[

[c0,c3,c6],

[c1,c4,c7],

[c2,c5]

],

'round-n' => [...]

...

];

---------------------------------------------------

Eventually, one table will have less participants. It would be good if this value is balanced.

Example.: (27 participants, 6 tables with 5 chairs each).

Return this: 5+5+5+4+4+4

Beceriler: Algoritma, Mantıksal Analiz, Matematik, PHP

İşveren Hakkında:
( 1 değerlendirme ) Rio de Janeiro, Brazil

Proje NO: #14838548

## Seçilen:

liangjongai

<<Hi, I have read your project description carefully I am highly interested to work on this project. I understand your requirements and I do have vast experience to do this type of work. I can assure you I can com>>

%selectedBids___i_period_sub_7% gün içinde 466%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(138 Değerlendirme)
6.5

## Bu iş için 11 freelancer ortalamada R\$518 teklif veriyor

elegentcoder

by delivering work of the highest quality on-time and on-budget. Relevant Skills and Experience Our mission to stand out doesn’t stop with our internal goals Proposed Milestones R\$466 BRL - To achieve goal with 100% Daha Fazla

in %bids___i_period_sub_35% gün içinde466%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(5 Değerlendirme)
4.3
in %bids___i_period_sub_35% gün içinde466%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(7 Değerlendirme)
4.4
originitsolution

Dear Sir, You have recently advertised for website developer. After reading your job description I am confident that I would be perfect fit for this position as my experience and abilities precisely match for your req Daha Fazla

in %bids___i_period_sub_35% gün içinde105%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(19 Değerlendirme)
4.8
in %bids___i_period_sub_35% gün içinde722%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(6 Değerlendirme)
4.1
poojamishra13

Hi, i am expert developer, would like to build this logical functionalities. it will take some time but i can do this. Thanks Relevant Skills and Experience HTML, jQuery / Prototype, Website Design Proposed Milestone Daha Fazla

in %bids___i_period_sub_35% gün içinde750%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(20 Değerlendirme)
3.9
in %bids___i_period_sub_35% gün içinde466%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)
1.8
ankitkumar045

Hello Thanks for opportunity to bid. I would like to submit my candidacy as already developed a lot of website. I have 5 years experience in Development I Daha Fazla

in %bids___i_period_sub_35% gün içinde466%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)
1.9
in %bids___i_period_sub_35% gün içinde466%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(5 Değerlendirme)
1.7
MetaoriginLab

A proposal has not yet been provided

in %bids___i_period_sub_35% gün içinde770%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)
1.5
aniljangra4200

With more than 5 years of experience in web designing and development, I have managed successfully to deliver number of projects to my clients in given timeframe and their utmost satisfaction. My expertise includes: Daha Fazla

in %bids___i_period_sub_35% gün içinde555%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0