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 16120

Imposes a restriction on the source code used to solve the challenge, for example, having no numbers in the source code.

17 votes

Calculate a tip

Javascript 81 EDIT : The result is now a real rounding, not truncated. Do not use ANY math here, just string manipulation and bitwise operators. All the + char are string concatenation, or string to …
Michael M.'s user avatar
  • 12.1k
4 votes

Raise to the Power

JS (ES6), 103 bytes t=(x,m,f)=>{for(r=i=s=u=1;i<1<<7+f;r+=s/(u=i++*(f?1:u)))s*=m;return r};e=(a,b)=>t(b,t(a,1-1/a,9)*b-b,0) Examples : e(1.234,5.678) = 3.299798925315965 e(4.5,4.5) = 869.87392 …
Michael M.'s user avatar
  • 12.1k
16 votes

ASCII's 95 Characters...95 Movie Quotes

81. PI, uses no < 9.14159265258979222846264228227950288419716929927510582097494459270781640628620899862800482524211706798214808651028220664709284460955058220172525940812848111745028410270192852110555 …
Michael M.'s user avatar
  • 12.1k
10 votes

Shortest Minmod Function

JavaScript (ES6), 39 bytes a=>a.reduce((p,c)=>p*c>0?p*p>c*c?c:p:0)
Michael M.'s user avatar
  • 12.1k
128 votes

ASCII's 95 Characters...95 Movie Quotes

90. Brainfuck, uses no " ++++ ++++ [>+>++>+++>++++>+ ++++>++++++>+++++++ >+++++++ +>++++++ +++>++++++++++>+ ++ ++ ++++++>++++ +++ +++ ++> ++ …
Michael M.'s user avatar
  • 12.1k
1 vote

Compare two integers in C or C++ without comparison operators

71 bytes main(x,y,z){scanf("%d%d",&x,&y);putchar((z=x-y)?(z&(z>>31))?50:49:51);} http://ideone.com/uvXm6c
Michael M.'s user avatar
  • 12.1k