[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
PC mustard race here how do I into hackathons? I'm not
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 17
Thread images: 1
File: hackathon-code.png (6 KB, 689x341) Image search: [Google]
hackathon-code.png
6 KB, 689x341
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 :^)
>>
>>51721629
if (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 disgusting

public 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.
Thread replies: 17
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.