We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Python solution using combinations. I calculate all the combinations and substract the pairs from the same country. Firstly I divide astronauts into countries and later I calculate number of combinations for each country.
Journey to the Moon
You are viewing a single comment's thread. Return to all comments →
Python solution using combinations. I calculate all the combinations and substract the pairs from the same country. Firstly I divide astronauts into countries and later I calculate number of combinations for each country.