Skip to main content
1 of 3
Dorian
  • 3k
  • 14
  • 12

05AB1E, 7 bytes

TL-γ€gM

Try it online!

Code:

TL      push [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
-       subtract that from input
γ       group by equal elements
€g      push lengths of each group
M       push max length
        implicitly print top of stack
Dorian
  • 3k
  • 14
  • 12