Skip to main content
deleted 25 characters in body
Source Link
user
  • 387
  • 2
  • 21
  • 68

Scala, 54 42 40 36 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, user, and some tips

Scala, 36 bytes

_.maxBy(_.toBinaryString.count(48<))

Try it online!

Scala, 54 42 40 36 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, user, and some tips

Scala, 36 bytes

_.maxBy(_.toBinaryString.count(48<))

Try it online!

Scala, 54 42 40 36 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, user, and some tips

_.maxBy(_.toBinaryString.count(48<))

Try it online!

No more edits
Source Link
Gabber
  • 161
  • 4

Scala, 54 42 4040 36 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, user, and some tips

Scala, 36 bytes

l=>l_.maxBy(_.toBinaryString.count(_>4848<))

Try it online!Try it online!

Scala, 54 42 40 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, and some tips

l=>l.maxBy(_.toBinaryString.count(_>48))

Try it online!

Scala, 54 42 40 36 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, user, and some tips

Scala, 36 bytes

_.maxBy(_.toBinaryString.count(48<))

Try it online!

More shortening
Source Link
Gabber
  • 161
  • 4

Scala, 54 4242 40 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, and some tips

l=>l.maxBy(_.toBinaryString.count(_=='1'_>48))

Try it online!Try it online!

Scala, 54 42 bytes

Saved some bytes thanks to caird coinheringaahing and some tips

l=>l.maxBy(_.toBinaryString.count(_=='1'))

Try it online!

Scala, 54 42 40 bytes

Saved some bytes thanks to caird coinheringaahing, didymus, and some tips

l=>l.maxBy(_.toBinaryString.count(_>48))

Try it online!

Shortened answer
Source Link
Gabber
  • 161
  • 4
Loading
Source Link
Gabber
  • 161
  • 4
Loading