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

Commonmark migration
Source Link

#Javascript, 57 bytes

Javascript, 57 bytes

a=prompt();for(y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

#Javascript, 57 bytes

a=prompt();for(y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

Javascript, 57 bytes

a=prompt();for(y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

Fixed header for leaderboard.
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

Javascript, 57 bytes

#Javascript, 57 bytes

a=prompt();for(y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

Javascript, 57 bytes

a=prompt();for(y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

#Javascript, 57 bytes

a=prompt();for(y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

added 40 characters in body
Source Link
SuperJedi224
  • 12k
  • 2
  • 46
  • 68

Javascript, 5857 bytes

a=prompt(b=" ");for(y=0;y<a+11;y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

Javascript, 58 bytes

a=prompt(b=" ");for(y=0;y<a+11;)b+=++y;alert(b.indexOf(a))

Javascript, 57 bytes

a=prompt();for(y=b=" ";y<a+11;)b+=++y;alert(b.indexOf(a))

Saved 1 byte thanks to Conor O'Brien.

deleted 1 character in body
Source Link
SuperJedi224
  • 12k
  • 2
  • 46
  • 68
Loading
Source Link
SuperJedi224
  • 12k
  • 2
  • 46
  • 68
Loading

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