Search Results
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 |
Code-golf is a competition to solve a particular problem in the fewest bytes of source code.
1
vote
Count up folks!
PHP, 32 bytes
for(;$i!=$argv[1];)echo++$i." ";
57 Bytes
$c=function($e){$i=0;while($i!=$e)echo ++$i." ";};$c(10);
0
votes
Count up folks!
PGP, 28 Bytes
PHP Golf Processor (https://github.com/barkermn01/PGP-php-CodeGolf/)
to run it php pgp.php file.pgp or php pgp.php '{code here}'
f(;$i!=$argv[1];)e ++$i." ";
0
votes
What do you get when you multiply 6 by 9? (42)
Javascript WebBrowsers - 43 41 bytes
a=function(a,b){return a==6&b==9?42:a*b;}
a is now a function call it with x & y
a(4,6) => 24
a(6,9) => 42
a(9,6) => 54
Try it online!
0
votes
Parse a C++14 integer literal
PHP - 43 Byte
eval("return ".str_replace($a,"'","").";");
Same method as https://codegolf.stackexchange.com/a/185644/45489
30
votes
18
answers
2k
views
Custom Number Base Converter
The powers that be want to be able to quickly convert any number they have into their own number base using any format they would like.
Input
Your program must accept 3 parameters.
Number: The st …