loading...

Discussion on: Daily Challenge #29 - Xs and Os

Collapse
jess0417 profile image
Jess

Scala

def xo(s: String): Boolean = {
  s.count(_ == 'x') == s.count(_ == 'o')
}