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 32963

Challenges related to elementary arithmetic.

0 votes

Add two numbers

Scala, 17 Bytes x:Int=>y:Int=>x+y
Stefan Aleksić's user avatar
1 vote

Reciprocal of a number (1/x)

Scala, 15 Bytes (x:Double)=>1/x Don't think there's a shorter way to do this in Scala.
Stefan Aleksić's user avatar
2 votes

Is this even or odd?

Scala, 14 Bytes (x:Int)=>x%2<1
Stefan Aleksić's user avatar
2 votes

Is this even or odd?

Vim Macro 54 Bytes ^vehxiF^[ve"nyo1234567890^MFTFTFTFTFT^[k@njvyo^[pi^[k$vggx This Vim Macro works on any file that contains just an integer. During the cleanup process, it removes all the code abo …
Stefan Aleksić's user avatar