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

Just bombed an interview. Got asked to implement the bubble sort

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 18
Thread images: 4

File: 1458872142395.png (440KB, 645x1260px) Image search: [Google]
1458872142395.png
440KB, 645x1260px
Just bombed an interview. Got asked to implement the bubble sort sorting algorithm on a whiteboard, and sum all the primes below 2 million. Never heard of bubblesort until then, and they actually expected me to compute the primes myself. They walked me through the sorting algorithm, but I couldn't catch on and failed. Then I told them I could sum the primes if I had them, but they weren't impressed. I've never felt so defeated.
>>
What the hell is a prime
>>
>>60638167
I don't even remember what a prime number is. I hate math
>>
i'll send you my (only slightly used) noose, what's your address?
>>
>>60638167
>Never heard of bubblesort
So you're with the same lot of "fuck school" faggots (aka Indians) who think you can just learn the bare minimum and be superior to everyone else? Enjoy that rope faggot.
>>
>>60638167
Go to comp.sci university for at least one year, but better just get a degree.

They surely even just wanted the obvious type of code (often with methods over 1000 years old), not the optimal variants to generate primes that were actually complex to figure out.
>>
File: 1495942587148.jpg (27KB, 640x513px) Image search: [Google]
1495942587148.jpg
27KB, 640x513px
>>60638167
>I told them I could sum the primes if I had them, but they weren't impressed
>>
>>60638173
>>60638174
Why are you on a technology board? You cannot even begin to understand technology without the trivial fundamentals of mathematics under your belt.
>>
>>60638174
Nigga it's just a number that's only evenly divisible by 1 and itself. 7 For instance.
>>
>>60638167
> sum all the primes below 2 million
Sound like the interviewer is a gentooman.
>>
Pasta
>>
>>60638235
Why do you think that?
>>
>>60638167
Whiteboard coding sucks.
also
>asked to implement bubblesort
like, not being able to do it even with coaching is kind of fucking depressing, but that seems like such a lame interview assignment

>couldn't compute the primes yourself
this one's tricky off-hand if you haven't looked at the Sieve of Eratosthenes before (shit, I haven't had to generate primes ever, so I forgot this existed despite it being a fairly common benchmark)
there's better ways probably, but this one is fairly low-effort to implement
>>
File: lmao.gif (353KB, 500x357px) Image search: [Google]
lmao.gif
353KB, 500x357px
>>60638167
Nice meme
>>
>>60638211
Bullshit. I don't need to know how to bubble root a prime vector to write a script that sorts my anime by filetype.
>>
File: IMG_01931.jpg (546KB, 1536x2048px) Image search: [Google]
IMG_01931.jpg
546KB, 1536x2048px
I only remember this pasta because of the last two sentences.
>>
>>60638211
Not him, but number sequences are not the basis of anything.
They are used in programming because they are simple to program.
And primes has some nice properties for hash tables, but that's about it.
If you are one of those people who think they are cool for memorizing pi with a lot of digits and call that math, you are an idiot.
>>
>>60638269
You don't, but if you don't learn, writing garbage scripts will be all you're good for.
>>60638274
If you can't even implement something as trivial as sieve off the top of your head, you can't implement any useful algorithm. Maths logic is the core behind any an algorithm.
>but that's about it.
Cryptography.
Thread posts: 18
Thread images: 4


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.