Skip to main content
Became Hot Network Question
edited title
Link

Organizing a "speedback" in a functional way

added 48 characters in body
Source Link

Speedback is the merging of speed-dating with feedback: a 2 min. 1-on-1 talk with all members of a group of people.Speedback is the merging of speed-dating with feedback: a 2 min. 1-on-1 talk with all members of a group of people.

I'm in a team and I want to plan the ideal speedback setup: all team members have to give feedback to eachother. I want to group people in a way that maximizes the concurrency of simultaneous pairs so we reduce the total time of the sessions.

Consider the input: "alexandre", "sergiu", "joana", "tiago", "susana", "david"

combinations(6,2) = 15 possible pairs

1st session:

"alexandre" with "sergiu"
"joana" with "tiago"
"susana" with "david"

2nd session:

"alexandre" with "joana"
"sergiu" with "tiago"
"joana" with "david"

3rd session:

...

you get the ideia.. until everyone "dates" everyone.

I need all the possible pairs to be matched in the end.

Do you how to get this output? (or can you hint about the solution)?

Speedback is the merging of speed-dating with feedback: a 2 min. 1-on-1 talk with all members of a group of people.

I'm in a team and I want to plan the ideal speedback setup: all team members have to give feedback to eachother. I want to group people in a way that maximizes the concurrency of simultaneous pairs so we reduce the total time of the sessions.

Consider the input: "alexandre", "sergiu", "joana", "tiago", "susana", "david"

combinations(6,2) = 15 possible pairs

1st session:

"alexandre" with "sergiu"
"joana" with "tiago"
"susana" with "david"

2nd session:

"alexandre" with "joana"
"sergiu" with "tiago"
"joana" with "david"

3rd session:

...

you get the ideia.. until everyone "dates" everyone.

I need all the possible pairs to be matched in the end.

Do you how to get this output? (or can you hint about the solution)?

Speedback is the merging of speed-dating with feedback: a 2 min. 1-on-1 talk with all members of a group of people.

I'm in a team and I want to plan the ideal speedback setup: all team members have to give feedback to eachother. I want to group people in a way that maximizes the concurrency of simultaneous pairs so we reduce the total time of the sessions.

Consider the input: "alexandre", "sergiu", "joana", "tiago", "susana", "david"

combinations(6,2) = 15 possible pairs

1st session:

"alexandre" with "sergiu"
"joana" with "tiago"
"susana" with "david"

2nd session:

"alexandre" with "joana"
"sergiu" with "tiago"
"joana" with "david"

3rd session:

...

you get the ideia.. until everyone "dates" everyone.

I need all the possible pairs to be matched in the end.

Do you how to get this output? (or can you hint about the solution)?

added 144 characters in body
Source Link

Speedback is the merging of speed-dating with feedback: a 2 min. 1-on-1 talk with all members of a group of people.

I'm in a team and I want to plan the ideal speedback setup: all team members have to give feedback to eachother. I I want to group people in a way that maximizes the concurrency of simultaneous 1-on-1spairs so we reduce the total time of the sessions.

I found a library that gives me allConsider the input: "alexandre", "sergiu", "joana", "tiago", "susana", "david"

combinations(6,2) = 15 possible pairs

1st session:

setOf("alexandre", "sergiu",with "sergiu"
"joana", "tiago", "susana",with "david")"tiago"
  "susana" with .combinations(2)"david"

This returns all pairs. Now the grouping. The first could be2nd session:

"alexandre" with "sergiu"
"joana"
"sergiu" with "tiago"
"susana""joana" with "david"

then it gets harder3rd session:

...

you get the ideia.. until everyone "dates" everyone.

I need all the possible pairs to be matched in the end.

Do you know which Kotlin functional method could help mehow to get this output? (or can you hint about the solution)?

Speedback is the merging of speed-dating with feedback: a 2 min. 1-on-1 talk with all members of a group of people.

I'm in a team and I want to plan the ideal speedback setup. I want to group people in a way that maximizes the concurrency of simultaneous 1-on-1s so we reduce the total time of the sessions.

I found a library that gives me all combinations:

setOf("alexandre", "sergiu", "joana", "tiago", "susana", "david")
    .combinations(2)

This returns all pairs. Now the grouping. The first could be:

"alexandre" with "sergiu"
"joana" with "tiago"
"susana" with "david"

then it gets harder..

Do you know which Kotlin functional method could help me (or can you hint about the solution)?

Speedback is the merging of speed-dating with feedback: a 2 min. 1-on-1 talk with all members of a group of people.

I'm in a team and I want to plan the ideal speedback setup: all team members have to give feedback to eachother. I want to group people in a way that maximizes the concurrency of simultaneous pairs so we reduce the total time of the sessions.

Consider the input: "alexandre", "sergiu", "joana", "tiago", "susana", "david"

combinations(6,2) = 15 possible pairs

1st session:

"alexandre" with "sergiu"
"joana" with "tiago"
"susana" with "david"

2nd session:

"alexandre" with "joana"
"sergiu" with "tiago"
"joana" with "david"

3rd session:

...

you get the ideia.. until everyone "dates" everyone.

I need all the possible pairs to be matched in the end.

Do you how to get this output? (or can you hint about the solution)?

deleted 52 characters in body
Source Link
Loading
deleted 52 characters in body
Source Link
Loading
Source Link
Loading