Neclace Count

Back to General discussions forum

pr_durgam.17je003008     2020-06-05 15:21:26

i couldnt understand how many beads are there for each colour in "neclace Count" Question.

pr_durgam.17je003008     2020-06-05 17:12:17

what does the question convey??

pr_durgam.17je003008     2020-06-05 17:13:06

are the question examples correct?

sontran     2020-06-05 17:18:25

The amount of beads of specific color isn't given, only the total amount for all colors is given. The amount of beads of specific color actually doesn't matter since it can change, see the top example.

The problem asks how many unique necklaces can be constructed from N total beads of B total colors.

The test cases are correct.

pr_durgam.17je003008     2020-06-06 06:38:33

I couldnt get the logic . can you help me?

pr_durgam.17je003008     2020-06-06 06:39:23

any formula?(for this)

Please login and solve 5 problems to be able to post at forum