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 21777

The challenge involves mathematics in some central way. Also consider using more specific tags, listed in the tag wiki info.

1 vote

Write a program that makes 2 + 2 = 5

Java Using reflection: import java.lang.reflect.Field; public class TwoPlusTwoTest { public static void main(String[] args) throws Exception { Field field = String.class.getDeclaredField …
c.P.u1's user avatar
  • 1,089
1 vote

Fibonacci-orial

JavaScript (ES6), 46 bytes f=(n,a=1,b=1,c=i=1)=>n==i?c:f(n,b,a+b,c*b,++i) Uses recursion and accumulator variables. Rounding errors start at f(16).
c.P.u1's user avatar
  • 1,089
2 votes

Substring Sum Set

Erlang, 69 bytes f(A)->put(1,1),L=lists,[L:sum(L:sublist(A,put(1,get(1)+1),X))||X<-A]. Erlang's higher-order functions for lists do not receive the index of the current element. This uses the process …
c.P.u1's user avatar
  • 1,089