3 ms·
That is preposterous! At a hackathon they would probably just return 10 or something. int fib(int val) { return 10; } // todo: implement me
by Justsignedup 13y ago
That is preposterous! At a hackathon they would probably just return 10 or something.
int fib(int val) { return 10; } // todo: implement me
- mcpherrinm 13y agoCertainly the version they gave is too much typing! Maybe something more like fn f(i: int)->int{[1,1,2,3,5,8,13,21][i]}; Need more values? copypaste from the online encyclopedia of integer sequences.