Skip to main content
added explanation
Source Link
mkst
  • 5.2k
  • 12
  • 19

K (oK), 9 bytes

Solution:

&/2=#:'.=

Try it online!

In mobile, explanation to follow.Explanation:

&/2=#:'.= / the solution
        = / group
       .  / value
    #:'   / count (length of) each
  2=      / equal to 2?
&/        / take minimum

K (oK), 9 bytes

&/2=#:'.=

Try it online!

In mobile, explanation to follow.

K (oK), 9 bytes

Solution:

&/2=#:'.=

Try it online!

Explanation:

&/2=#:'.= / the solution
        = / group
       .  / value
    #:'   / count (length of) each
  2=      / equal to 2?
&/        / take minimum
Source Link
mkst
  • 5.2k
  • 12
  • 19

K (oK), 9 bytes

&/2=#:'.=

Try it online!

In mobile, explanation to follow.