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 |
A code challenge is a competition for creative ways to solve a programming puzzle with an objective winning criterion not covered by other scoring tags (e.g. code-golf).
3
votes
Swapping numbers
Javascript 178 174 161
prompts for n then alerts answer. (No 0 padding)
Latest:
t=1+(m=prompt(s=i='')/2);for(z=Math.abs;i++<m*2;)for(j=m-z(m-i),s+=(t+=a=(m%2^z(m+.5-i)%2-.5)*-2+1)+'To'+(t-a)+'|';j- …
1
vote
Find largest prime which is still a prime after digit deletion
Javascript (Brute Force)
Has not yet found a higher number
http://jsfiddle.net/79FDr/4/
Without a bigint library, javascript is limited to integers <= 2^53.
Since it's Javascript, the browser will …
8
votes
Write ASCII-Art Obfuscated Code, read as, and resulting in: "DFTBA"
Javascript (80 x 10) / 32 + 25? + 94 = 144
Code:
eval('for(i =10;i<0x24;42, Number["prot"+ "otype"][(i++ ).toString(36\
)]=Number["p" +"rototype"]/* */["toString"] );alert(((+((- ~{ …