79692417

Date: 2025-07-07 07:04:17
Score: 1.5
Natty:
Report link

Here is my answer:

var ls = List('R','G','B')
var res=scala.collection.mutable.ListBuffer[String]()
for {i<-ls; j<-ls; k<-ls}
{

  if (i!=j && j!=k && k!=i) {
    var x=s"$i$j$k" // string concat
    res+=x
  }
}
println(res.toList)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: shyam sundar