##Mandatory APL answer - 21 22
Mandatory APL answer - 21 22
"01"[1+2|⌊⎕÷2⋆⊖0,⍳15]
Examples:
"01"[1+2|⌊⎕÷2⋆⊖0,⍳15]
⎕: 0
0000000000000000
"01"[1+2|⌊⎕÷2⋆⊖0,⍳15]
⎕: 13
0000000000001101
"01"[1+2|⌊⎕÷2⋆⊖0,⍳15]
⎕: 9999
0010011100001111
"01"[1+2|⌊⎕÷2⋆⊖0,⍳15]
⎕: -3
1111111111111101
"01"[1+2|⌊⎕÷2⋆⊖0,⍳15]
⎕: 32767
0111111111111111