Skip to main content
2 of 5
fixed version
Arnauld
  • 197.7k
  • 20
  • 179
  • 650

#JavaScript (ES6), 92 bytes

Takes input as (['gold','silver','bronze'])('rep'). Returns a Boolean value.

b=>F=([c,...a],x=b.map((n,i)=>n.repeat(+n&&3-i)).join``)=>c?(X=x.replace(c,''))!=x&F(a,X):!x

Try it online!

Arnauld
  • 197.7k
  • 20
  • 179
  • 650