Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8475367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:52:24+00:00 2026-06-10T17:52:24+00:00

I have map of groups. Each groups have list of players: Map<String, List<Player>> playerByGroup

  • 0

I have map of groups. Each groups have list of players:

Map<String, List<Player>> playerByGroup = new LinkedHashMap<String, List<Player>>();

for example:

map contains:

 group A: players 1 2 3 4 5 6 
 group B: players 7 8 9 10 11 12 
 group C: players 13 14 15 16 17 18 
 group D: players 19 20 21 22 23 24 

now I need to create schedule. Each player from every groups should be player with player from another group

for example:

player 1 should be player with player 7 – 24 but not with player 2 – 6

this isnt problem to create

But now I have problem:

I need to create round which contains numberOfPlayer/2 of games. In round every player can play just once

for example

1.round should be looks like:

1.game 1 vs 7
2.game 13 vs 19
3.game 3 vs 9
4.game 14 vs 20
5.game 2 vs 8
6.game 15 vs 21
7.game 4 vs 10
8.game 16 vs 22
9.game 5 vs 11
10.game 17 vs 23
11.game 6 vs 12
12.game 18 vs 24

2.round ...

there should be just 18 rounds because one player should play with 18 players.

PROBLEM:

Problem is to create just 18 rounds where in each round one player play just once

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:52:26+00:00Added an answer on June 10, 2026 at 5:52 pm

    I will explain the answer for you example. it’s easy to extend it for general situations.

    divide your rounds into three main set so we have 6 round in each set.

    in the first set with six rounds:

    all players of group A will play to all players of group B and all players of group C will play to all players of group D.

    in the second set all players of group A will play to all players of group C and all players of group B will play to all players of group D.
    in the third set all players of group A will play to all players of group D and all players of group B will play to all players of group C.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a group of borders that make up a small map. Ideally I'd
I have a Map and a List . The List should be sorted based
I have an expandable list in android and I can fill it with string
In c# is there a structure like c++ map? I have a group of
I have a requirement of reading a text file which contains list of all
I have an std::map < std::string, std::string > which is having values added to
I have map.resources :posts and I want to be able to serve post bodies
I have map with multiple different colors markers with some info window. Everything works
I want to display google map in Android ,i have map API even map
I have a map of the UK broken down into various geographic regions. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.