Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 83283

Challenges related to elementary arithmetic.

0 votes

Print N Squared

Pyth, 29 bytes *zKszVSJ-K2p+z*J*lzdz)I>K1*zK Try it online! Properly handles "1" case, even if it cost me 3 more characters to do so. Still new to Pyth, and there's some interesting stuff happenin …
Tryer's user avatar
  • 81
1 vote

1, 2, Fizz, 4, Buzz

Pyth, 39 bytes VS100J+?q0%N3"Fizz"k?q0%N5"Buzz"k?qJkNJ Try it online! There's probably an easier and shorter way. Also is(polishNotation, annoying). This is roughly equivalent to: for x in range …
Tryer's user avatar
  • 81