[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]

>final interview stage >whiteboard rolls out >asked

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: 82
Thread images: 9

File: suicidal_bald_man.png (440KB, 645x1260px) Image search: [Google]
suicidal_bald_man.png
440KB, 645x1260px
>final interview stage
>whiteboard rolls out
>asked to invert binary tree
>>
>>59722864
I have no trouble solving maths problems, but questions like these always strike me down on the spot.
>>
>>59722962

It's no different to IQ tests: beforehand you look up other peoples answers to better understand the question. Regurgitate if you're shit, rewrite if you're not
>>
>>59723486
thx fr this life tip
>>
>go through company's online application form
>digital whiteboard appears
>asked to implement a hash table while minimising collisions
>>
>>59722864
>invert
>DRAW BINARY TREE ON WHITEBOARD
>FLIP WHITEBOARD UPSIDE DOWN
>>
>>59722864
doesn't that just mean restructure it so that whatever sort operator was used to define it is reverse?

nigger, just mirror the fucking thing left to right. where the fuck did you go to school? fuck off, pajeet.
>>
>>59722864
>Binary tree
I assume this means binary seach tree. In which case you probably don't even need to touch the underlying data structure, just swap the left/right node accessor methods.
>>
File: IMG_0008.jpg (55KB, 1338x1338px) Image search: [Google]
IMG_0008.jpg
55KB, 1338x1338px
You're in the club and this guy slaps your gf's ass. What do?
>>
>>59725889
Can someone explain me this meme please?
>>
>>59725968
which one?
>>
>have real career
>don't have to do any of that nonsense
>>
>>59722864
for each node
swap left child node with right child node

wow that was so hard
>>
>read up on interview questions
>master summing up primes to 2 million
>get to interview
>asked to sum all primes up to THREE million
>>
>>59726691
kek
>>
>read up on interview questions
>memorize fizzbuzz
>get to interview
>asked to buzzfizz
>>
>>59722864
>ate final tendie
>tendies gone
>have to do something for myself but can't
>>
File: Bogdanoff (1).jpg (49KB, 500x387px) Image search: [Google]
Bogdanoff (1).jpg
49KB, 500x387px
>final interview stage
>this man rolls out whiteboard
>asked to give a quick rundown
>>
>enter interview room
>employer sees Im not black
>get job
>>
>Presidential race almost over, last TV debate
>SUDDENLY, DEBATE MODERATOR WHEELS OUT A WHITEBOARD
>"The President has to be able to show how to invert a binary search tree."
We wouldn't have needed to worry about Trump becoming president.
>>
File: inhales-wrong-5392190.png (98KB, 500x585px) Image search: [Google]
inhales-wrong-5392190.png
98KB, 500x585px
>>59728663

>shout WRONG in the face of the interviewer
>>
>enter interview room
>employer sees Im not black
>didn't get the job
>>
Serioulsy, what kinds of jobs are you guys applying that require you to do this shit? A fucking binary tree, sum prime number, fucking why?
>>
>>59729363
Familiarity with the basics of data structures and algorithms. And the ability to solve simple problems yourself.
>>
>>59723697

Too smart not to work
>>
>final interview stage
>whiteboard rolls out
>asked to prove the Goldbach conjecture for the first 2 million integers
>>
>>59728663
It's funny all the delusional fantasies you bernouts think of.
>>
>>59722864
>based whiteboard keeping women and niggers out of programming jobs
Thank you based -WHITE-board
>>
>>59728513
what was the answer to this one again?
>>
>>59722864
Lol we did that at 3rd year in High school.
>>
>>59722864
That's easy.
import irrelevant_library
irrelevant_library.library_specific_function (":^)")
>>
>>59726691
hahah
>>
>>59726691
LMAO.
>>
File: 238720-fs8.png (67KB, 827x400px) Image search: [Google]
238720-fs8.png
67KB, 827x400px
>>59726691
kek'd
>>
>>59725889
>tfw can't sum all primes above 2 million
>>
>final stage of the interview
>whiteboard rolls out
>asked to draw the HR manager's fursona
>>
>>59735154
>fail because I forgot to draw the diapers
>>
>>59730154
Rotchilds bow to Bogdanoffs something something
>>
>>59722864

What does even mean? Just recursively swap left and right nodes?
>>
>enter interview
>go straight to whiteboard
>cd
>cd code
>ls
>hired
>>
>>59723697
MADMAN
>>
>>59723697
Congratulations, you got the job.
>>
>>59726125
The whiteboard meme
>>
>>59736330
some faggot was asked to do a binary tree
>>
There is a whiteboard interview study group at my school. They are really good at these types of questions, but some of the worst programmers I have ever met. Feel bad for whoever hires them.
>>
File: 20111216-064830.png (152KB, 830x844px) Image search: [Google]
20111216-064830.png
152KB, 830x844px
>final interview stage
>memorized my fizzbuzz pretty well
>asked to do a weird variant of fizzbuzz where fizz is on divisible by 5 and buzz at divisible by 4
They did it on purpose because they want to hire a fucking pajeet instead
>>
>asked to fizzbuzz the inverse of the prime tree
I'm not going to get this job, am I?
>>
>>59725889
>gf
>your
>>
>>59736746
just because shes 2d doesnt mean shes not real
>>
>get asked technical question in interview
>pull out my pocket-whiteboard TM
>get job

Explain?!??
>>
>>59722864
>mfw I literally got asked to sum all primes below 2 million

Study up nigs
>>
I still don't understand what is even meant by inverting a binary tree.
>>
File: 1491161355454.jpg (31KB, 615x409px) Image search: [Google]
1491161355454.jpg
31KB, 615x409px
>>59722864

That's why pajeets and rajets get you job, murica.
>>
>>59737111
I see it like this
>traverse tree
>get some array as output
>traverse the inverse tree
>get same array as above but in inverted order
>find the inverted tree
>>
>>59728734
yeah, thats probably what would have happend
>>
>>59736418
That's possibly the most CS-student thing ever
>>
File: 1436793190543.jpg (49KB, 392x373px) Image search: [Google]
1436793190543.jpg
49KB, 392x373px
>Final interview stage
>Asked to sum all prime numbers
>Forget the last one
>>
>>59737455
Sum of natural numbers is -1/12, sum of all primes must be lass than that, coz you know, less numbers to sum.
>>
>>59732444
This
>>
>>59736037
Kode with Anon
>>
>>59728663
t. CTR millennial anal gay cunt cuck kike
fuck off back to /utg/
>>
>>59729999
>white women don't exist
???
>>
>>59737765
Sum of natural numbers is not -1/12, it's just a silly trick you can do with sets.
>>
>>59736802
isn't that just a notepad?
>>
>>59726691
This happened to me. Implemented a sieve, then was asked to sum 1 trillion. My sieve crashed with memory error building the array at around 2 billion, using over 8GiB of RAM, and I couldn't optimize it on the spot.
>>
>>59737961
>optimize
There's no optimizing to do, you just wrote a worthless sieve. Every natural number up to 2 billion should only take up about 8MB of RAM.
1 trillion should take up about 4GB.

You were probably storing duplicates of numbers or passing things around by copy instead of reference.
>>
>>59723697
You're supposed to use a mirror, dumbass
>>
>>59737862
It's just a different summation technique. It's only useful if you're trying to categorize divergent sums or if you need to come up with a crazy physics theory to keep the grant money coming.
>>
>>59737996
>1 trillion should take up about 4GB.
1 trillion is 1*10^12. Using truth testing, and the smallest array possible in Python of an unsigned char of 1 byte, then the array would consist of 8*10^12 bytes = 8*10^12 / 1024^3 = 7451 GiB, minimum. Now a byte array is what you're talking about, but the fact still remains no arrayed sieve bytes array or not is able to sieve 1 trillion. If you look at all the implementations out there, like, say, primesieve, they all use segmented sieves with wheel factorization, and segmentation and wheel rolling optimized for specific limit.
>>
>>59737996
Wouldn't a 2 billion entry bitmask take up around 250 MB?
>>
>>59728663
I still think it's funny that Trump faced far more significant challenges that Bernie and that communist kike still got BTFO. And paid less taxes than Trump lmao
>>
>>59736330
Have you ever had a job interview for a technical position?
>>
>>59738835
Never had an interview for a position
>>
>>59738383
>Python
there's your problem
>>
File: IMG_0011.jpg (233KB, 1338x1338px) Image search: [Google]
IMG_0011.jpg
233KB, 1338x1338px
>>
Are we getting all that threads because of the folks graduating soon and are currently interviewing
>>
>>59741610
yep
>>
Is this really that difficult? I'm pretty sure this is correct.

public Node invertTree(Node node) {
if (node == null) return;
// Invert
Node tmp = node.left;
node.left = node.right;
node.right = tmp;
invertTree(node.left);
invertTree(node.right);
}

...

invertTree(root);
>>
>>59743787
Whoops, it's a void function but anyways
>>
>>59743787
itt: anon doesn't undestand scope
>>
>>59744133
I'm pretty sure that it works just fine. What could have been changed is that it would return the Node after the two invert calls, and then below assigned the new root to the inversion of the tree.
>>
>>59738457
If fellating rednecks is a challenge, yes.
Thread posts: 82
Thread images: 9


[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.