Project Euler 493 - Under the rainbow
Project Euler 493 - Under the rainbow
Official link: https://projecteuler.net/problem=493
Thought Process
Thought Process
The problem boils down to creating a, n choose m function, but this is very easy in Python.
Interactive Code
Interactive Code
Enter 3 integer's (colours, numpercolour, numofpickedballs)
Code will output the number of distinct colours in numofpickedballs, where there are colours and numpercolour of balls per colour