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

What's a good whiteboard programming question to ask during

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: 14
Thread images: 3

File: 1431434986158.png (750KB, 854x853px) Image search: [Google]
1431434986158.png
750KB, 854x853px
What's a good whiteboard programming question to ask during an interview? I'll be interviewing a new software developer and I want a problem that will weed out more than just poos and purplehairs
>>
>>62146554
>mfw HR is asking me what questions he must ask me
I dunno, what project are you recruiting for? What is your sphere?
>>
>>62146554
Tail-recursive Fibonacci.
>>
>>62146554
I've never held a programming job, but I'd go with some kind of list-sorting thing; perhaps a list shuffler.
>>
File: latest.png (3KB, 228x173px) Image search: [Google]
latest.png
3KB, 228x173px
lattice paths

given a grid of size NxM, starting from the top left corner and being able to move only right or down, find an algorhythm that tells you how many unique ways there are to reach the bottom right
>>
>>62146651
This one is for an iOS developer, but I want to make sure they aren't a brainlet. Our company's pretty dynamic, they'll probably end up changing roles pretty often.
>>
>>62146554
Ask him to do >>62146720 by describing it as a mathematical problem and solving the number of distinct paths in closed form, and then program it in pseudocode.
I certainly wouldn't hire anyone that wrote a search algorithm for shit this easy.
>>
>be software engineer
>never had to do one of these whiteboard meme interviews
Is this some CA meme? Here in the Land of Southern Pride, we don't have that.
>inb4 some insult about the south being dumb because we don't do retarded meme interviews
>>
>>62146720
>find an algorithm
This is just a simple math problem though.
Take the number of max moves you can make to the right (N_r), the number of max moves you can make down (N_d). The number of paths becomes
(N_r+N_d)!/((N_r!)*(N_d!))
>>
>>62146748
Midwest, actually

>>62146720
>>62146746
>>62146802
This is an O(1) problem. I'd like to give them an O(n) problem at least, and maybe ask them to describe the complexity
>>
>>62147763
Just do some of the basics

Bubble sort, merge sort, making linked list, etc

Things that wouldn't be too difficult to do on a whiteboard
>>
General approach outline of numerical approximation of Black-Scholes equation.
>>
>>62146554
None, whiteboard interviews are cancer and revolve around questions that have nothing to do with the actual job. Only people fresh out of college actually remember the theory required for these problems. You'll end up scaring off the people who can actually write your shitty CRUD apps and solve your stupid business problems and end up hiring "clever" guys who spent dozens of hours on grinding leetcode or hackerank, can recite Cracking the Coding interview in reverse but have no clue how to actually perform their work.

Instead of giving them a problem ask about their side projects, have them describe their greatest challenge they faced on the project, ask why did they use framework X instead of Y, if possible have them show you a demo or the code itself. I guarantee that pajeets and gurlcoders will flop on this one and you'll get a far better assessment of the candidate's skill than asking them to find a cycle in a linked list.

>>62146740
>dynamic company
>changing roles pretty often
Sounds like shit company, no wonder you ask about whiteboard interviews
>>
How does the internet work?
Thread posts: 14
Thread images: 3


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