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 Answer

saved 1 byte
Source Link
Arnauld
  • 205.5k
  • 21
  • 187
  • 670

JavaScript (Node.js), 54(削除) 54 (削除ここまで) 53 bytes

Returns 0 or 1.

s=>Buffer(s).map(c=>t+=c&31>>(k++,c<58)c=>t+=++k&&c%96%64%48,k=t=0)|t%k<!!t

Try it online! Try it online!

JavaScript (Node.js), 54 bytes

Returns 0 or 1.

s=>Buffer(s).map(c=>t+=c&31>>(k++,c<58),k=t=0)|t%k<!!t

Try it online!

JavaScript (Node.js), (削除) 54 (削除ここまで) 53 bytes

Returns 0 or 1.

s=>Buffer(s).map(c=>t+=++k&&c%96%64%48,k=t=0)|t%k<!!t

Try it online!

Source Link
Arnauld
  • 205.5k
  • 21
  • 187
  • 670

JavaScript (Node.js), 54 bytes

Returns 0 or 1.

s=>Buffer(s).map(c=>t+=c&31>>(k++,c<58),k=t=0)|t%k<!!t

Try it online!

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