Skip to main content
Commonmark migration
Source Link

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

###Explanation### TG9LNýN.øŒ})˜Iå TG } # For 1 to 9... 9L # Push [1 .. 9] Ný # Join with current value N.ø # surround with current value Œ # Push substrings ) # Wrap stack to array ˜ # Deep flatten the array I # Push input å # Is the input in the array? # Implicit print

Explanation

TG9LNýN.øŒ})˜Iå
TG        }     # For 1 to 9...
  9L             # Push [1 .. 9]
    Ný           # Join with current value 
      N.ø        # surround with current value
         Œ       # Push substrings
           )    # Wrap stack to array
            ˜   # Deep flatten the array
             I  # Push input
              å # Is the input in the array?
                # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

14 Bytes if no output counts as falsy:

TG9LNýN.øŒIåi1

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

###Explanation### TG9LNýN.øŒ})˜Iå TG } # For 1 to 9... 9L # Push [1 .. 9] Ný # Join with current value N.ø # surround with current value Œ # Push substrings ) # Wrap stack to array ˜ # Deep flatten the array I # Push input å # Is the input in the array? # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

14 Bytes if no output counts as falsy:

TG9LNýN.øŒIåi1

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

Explanation

TG9LNýN.øŒ})˜Iå
TG        }     # For 1 to 9...
  9L             # Push [1 .. 9]
    Ný           # Join with current value 
      N.ø        # surround with current value
         Œ       # Push substrings
           )    # Wrap stack to array
            ˜   # Deep flatten the array
             I  # Push input
              å # Is the input in the array?
                # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

14 Bytes if no output counts as falsy:

TG9LNýN.øŒIåi1
added 64 characters in body
Source Link
Datboi
  • 1.3k
  • 8
  • 9

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

###Explanation### TG9LNýN.øŒ})˜Iå TG } # For 1 to 9... 9L # Push [1 .. 9] Ný # Join with current value N.ø # surround with current value Œ # Push substrings ) # Wrap stack to array ˜ # Deep flatten the array I # Push input å # Is the input in the array? # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

14 Bytes if no output counts as falsy:

TG9LNýN.øŒIåi1

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

###Explanation### TG9LNýN.øŒ})˜Iå TG } # For 1 to 9... 9L # Push [1 .. 9] Ný # Join with current value N.ø # surround with current value Œ # Push substrings ) # Wrap stack to array ˜ # Deep flatten the array I # Push input å # Is the input in the array? # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

###Explanation### TG9LNýN.øŒ})˜Iå TG } # For 1 to 9... 9L # Push [1 .. 9] Ný # Join with current value N.ø # surround with current value Œ # Push substrings ) # Wrap stack to array ˜ # Deep flatten the array I # Push input å # Is the input in the array? # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

14 Bytes if no output counts as falsy:

TG9LNýN.øŒIåi1
added 469 characters in body
Source Link
Datboi
  • 1.3k
  • 8
  • 9

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

###Explanation### TG9LNýN.øŒ})˜Iå TG } # For 1 to 9... 9L # Push [1 .. 9] Ný # Join with current value N.ø # surround with current value Œ # Push substrings ) # Wrap stack to array ˜ # Deep flatten the array I # Push input å # Is the input in the array? # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

It should work (test cases did) but if you find any flaws please let me know.

05AB1E, 15 bytes

TG9LNýN.øŒ})˜Iå

Try it online!

###Explanation### TG9LNýN.øŒ})˜Iå TG } # For 1 to 9... 9L # Push [1 .. 9] Ný # Join with current value N.ø # surround with current value Œ # Push substrings ) # Wrap stack to array ˜ # Deep flatten the array I # Push input å # Is the input in the array? # Implicit print

It should work (test cases did) but if you find any flaws please let me know.

Source Link
Datboi
  • 1.3k
  • 8
  • 9
Loading