PC mustard race here
how do I into hackathons? I'm not able to travel 200km with my rig
>>51721424
Get a smaller rig you pleb.
What is a better way to write the code? It looks clear to me.
Buy a Macbook Pro Retina :^)
>>51721629if (n > 1)
return getFibonacciNumber(n - 1) + getFibonacciBumber(n - 2)
else
return 1;
>>51721642
this, get the $2500 one so you can rock the graphics :^)
thinkpad x220 will be okay?
You're writing code at an event, why the fuck do you need your desktop?
>>51721665
>recursion when no tail call
Pig disgustingpublic int getFibonacciNumber(int n)
{
int k = n < 2 ? n : 2;
int[] fib[3] = {1, 1, 2};
while (++k < n)
{
fib[k] = fib[(k - 1) % 3] + fib[(k - 2) % 3];
}
return fib[k];
}
>>51721924
return k -1 i mean
>>51721924
>java
OUT
>>51722232
WITH
>>51722232
desu that could also be C++. There's no language-specific calls going on there. It's hard to tell
>>51721424
use hackathons for what they are: make your revolutionary agenda known to the masses
or your startup
>>51722309
>no language specific calls
>public
>without a colon
>>51722309
Also
>int[]
>>51721424
>Not able to travel with my rig
Why not? I've gone further than that with a 52 pound system in a big Fractal XL R2 case multiple times.