Skip to main content
Bounty Ended with 100 reputation awarded by Adám
Added thanks
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

APL (Dyalog Extended), 11 8 bytes

∊⍕¨'0'=⎕

Try it online!

-3 thanks to @Adám

Explanation

∊⍕¨'0'=⎕
   '0'=⎕        For each character: 1 if it's '0', 0 otherwise
 ⍕¨             Convert each to string
∊               Flatten into a single string

APL (Dyalog Extended), 11 8 bytes

∊⍕¨'0'=⎕

Try it online!

Explanation

∊⍕¨'0'=⎕
   '0'=⎕        For each character: 1 if it's '0', 0 otherwise
 ⍕¨             Convert each to string
∊               Flatten into a single string

APL (Dyalog Extended), 11 8 bytes

∊⍕¨'0'=⎕

Try it online!

-3 thanks to @Adám

Explanation

∊⍕¨'0'=⎕
   '0'=⎕        For each character: 1 if it's '0', 0 otherwise
 ⍕¨             Convert each to string
∊               Flatten into a single string
Saved 3 bytes
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

APL (Dyalog Extended), 1111 8 bytes

∊⍕¨~2|⎕UCS⎕∊⍕¨'0'=⎕

Try it online!

Port of Riley's 05AB1E answer. This can probably be improved.Try it online!

Explanation

∊⍕¨~2|⎕UCS⎕
      ⎕UCS⎕     Unicode codepoints of the input∊⍕¨'0'=⎕
   ~2|   '0'=⎕       Not modFor 2each (i.e.character: 1 if oddit's '0', 0 if even)otherwise
 ⍕¨             Convert each to string
∊               Flatten into a single string

APL (Dyalog Extended), 11 bytes

∊⍕¨~2|⎕UCS⎕

Try it online!

Port of Riley's 05AB1E answer. This can probably be improved.

Explanation

∊⍕¨~2|⎕UCS⎕
      ⎕UCS⎕     Unicode codepoints of the input
   ~2|          Not mod 2 (i.e. 1 if odd, 0 if even)
 ⍕¨             Convert each to string
∊               Flatten into a single string

APL (Dyalog Extended), 11 8 bytes

∊⍕¨'0'=⎕

Try it online!

Explanation

∊⍕¨'0'=⎕
   '0'=⎕        For each character: 1 if it's '0', 0 otherwise
 ⍕¨             Convert each to string
∊               Flatten into a single string
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

APL (Dyalog Extended), 11 bytes

∊⍕¨~2|⎕UCS⎕

Try it online!

Port of Riley's 05AB1E answer. This can probably be improved.

Explanation

∊⍕¨~2|⎕UCS⎕
      ⎕UCS⎕     Unicode codepoints of the input
   ~2|          Not mod 2 (i.e. 1 if odd, 0 if even)
 ⍕¨             Convert each to string
∊               Flatten into a single string