Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 2
chunes
  • 27.8k
  • 3
  • 32
  • 55

Uiua SBCS , 19 bytes

⬚@0円∵⍜∩(-@0円)⍜∩⋯⬚0≠

Try it!

⬚@0円∵⍜∩(-@0円)⍜∩⋯⬚0≠­⁡​‎‎⁡⁠⁢⁡‏‏​⁡⁠⁡‌⁢​‎‎⁡⁠⁢‏⁠‎⁡⁠⁣‏⁠‎⁡⁠⁤‏‏​⁡⁠⁡‌⁣​‎‎⁡⁠⁢⁢‏⁠‎⁡⁠⁢⁣‏⁠‎⁡⁠⁢⁤‏⁠‎⁡⁠⁣⁡‏⁠‎⁡⁠⁣⁢‏⁠‎⁡⁠⁣⁣‏⁠‎⁡⁠⁣⁤‏⁠‎⁡⁠⁤⁡‏‏​⁡⁠⁡‌⁤​‎‎⁡⁠⁤⁢‏⁠‎⁡⁠⁤⁣‏⁠‎⁡⁠⁤⁤‏⁠‎⁡⁠⁢⁡⁡‏⁠‎⁡⁠⁢⁡⁢‏⁠‎⁡⁠⁢⁡⁣‏‏​⁡⁠⁡‌­
 ∵ # ‎⁡map over corresponding chars w/ dyadic function
⬚@0円 # ‎⁢padding shorter input w/ null
 ⍜∩(-@0円) # ‎⁣apply to code points
 ⍜∩⋯⬚0≠ # ‎⁤xor
chunes
  • 27.8k
  • 3
  • 32
  • 55

AltStyle によって変換されたページ (->オリジナル) /