Make a bracelet out of given colors for the beads used in it.

  • 0

    Given an array of colors(i.e. bead colors) and the length of the bracelet(i.e. the number of beads in it), make a bracelet such that no two consecutive beads will be of same color and no three consecutive beads will repeat in the bracelet. You can use any number of beads from any color from the given array of colors for beads.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.