Skip to main content
added 572 characters in body
Source Link
Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122

05AB1E, 1413 bytes

[DγεDgÉ£[DγʒgÉ}˜DŠQ#€нDŠQ#

Try it online!Try it online!

Explanation:

[DγʒgÉ}€нDŠQ# Implicit input
[             Start infinite loop
 D            Duplicate
  γ           Split into chunks of equal elements
   ʒ  }       Filter by
    g           Length
     É          Odd? (0=falsy 1=truthy)
       €      Foreach command
        н     Head
         D    Duplicate
          Š   Push c, a, b
           Q  Equal? (0=falsy 1=truthy)
            # Break if true (i.e. equal to 1)

05AB1E, 14 bytes

[DγεDgÉ£}˜DŠQ#

Try it online!

05AB1E, 13 bytes

[DγʒgÉ}€нDŠQ#

Try it online!

Explanation:

[DγʒgÉ}€нDŠQ# Implicit input
[             Start infinite loop
 D            Duplicate
  γ           Split into chunks of equal elements
   ʒ  }       Filter by
    g           Length
     É          Odd? (0=falsy 1=truthy)
       €      Foreach command
        н     Head
         D    Duplicate
          Š   Push c, a, b
           Q  Equal? (0=falsy 1=truthy)
            # Break if true (i.e. equal to 1)
Source Link
Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122

05AB1E, 14 bytes

[DγεDgÉ£}˜DŠQ#

Try it online!