News for hackers. Stuff that matters.
Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @08:21AM (#17757204)
I work for Google and have never been good at the "Here's an NP-hard problem you haven't heard of, write correct code for nlogn solution on whiteboard in language of choice" question. I had to train extensively (reading CLR, practicing) to be able to pass.

However, large numbers of engineers at Google are very good at solving whiteboard questions. A lot of it comes from practice, a lot comes from knowing the common problems and solutions, and a lot comes from knowing the algorithmic primitives from which modern algorithms are born.

For many, whiteboard questions are "fun"- in the same way my parents like to do crossword puzzles for the intellectual exercise, Googlers like to discuss challenging, abstract-but-related-to-ads-or-search questions.

Re:Ask HN: Can engineers from Google or Facebook solve white... by jasondclinton on Tuesday August 14, 2018 @08:53AM (#17757420)
I have worked at Google for 7 years. I am a SWE and mostly agree with the parent.

I am, I think objectively, a pretty good software engineer and often couldn't solve my peers interview questions in the time allotted. I try to do my part by conducting interviews with questions that I think demonstrate the ability to actually code and think abstractly as opposed to regurgitating some random algorithm that has been memorized. I ask a simple CS 100-200 level, one-word-answer question about an algorithm and then move on to a coding question.

Despite the difficulty of some of the questions that others ask, often the interviewer wants the interviewee to pass and so will throw a hint. It's important to keep commicating because that is how those hints will be delivered.

Ironically, I never interviewed because I came in from an acquisition. Yes, I was very lucky.

Re:Ask HN: Can engineers from Google or Facebook solve white... by wyldfire on Tuesday August 14, 2018 @09:53AM (#17757883)
> I had to train extensively (reading CLR, practicing)

I didn't know what "CLR" was, so I searched around: Cormen, Leiserson, Rivest's "Introduction to Algorithms" [1].

[1] https://en.wikipedia.org/wiki/Introduction_to_Algorithms

Re:Ask HN: Can engineers from Google or Facebook solve white... by abvr on Tuesday August 14, 2018 @12:26PM (#17759331)
Yes, it's usually abbreviated as CLRS.
Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @06:33PM (#17762500)
Apparently they added an author since I last studied. Damn, that was over 10 years ago.
Re:Ask HN: Can engineers from Google or Facebook solve white... by abvr on Tuesday August 14, 2018 @07:04PM (#17762668)
Yeah, quite a bit must have changed or more likely evolved through the years, so a lot of the pseudocode and algorithms have been modified or added for instance, topics on dynamic programming, memoization and the like have had more emphasis. Several revisions to examples in basic tree algorithms and additions of some too have arisen. You could consider brushing up on a few things as a casual read perhaps, especially on the new topics. Also, another book I found great was Skiena's Algorithm Design manual.

[1] https://www.quora.com/What-is-the-difference-between-CLRS-se...

Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Wednesday August 15, 2018 @07:57AM (#17765336)
That's OK, I don't plan to read any CS books in the future, with the exception of The Art of Computer Programming, which I feel, after many years of training (including a decade as a SWE at Google), I'm finally ready to enjoy.
Re:Ask HN: Can engineers from Google or Facebook solve white... by abvr on Wednesday August 15, 2018 @10:35AM (#17766284)
Oh yes, one of my bucket list kinda goals in life is to be able to get to a level where I can grok TAoCP at a visceral level and understand the underlying mathematics used to derive the algorithmic complexities and how they all function. I think any computer science person who is passionate about the topics should give it a try at some point in their lives.
Re:Ask HN: Can engineers from Google or Facebook solve white... by sshine on Tuesday August 14, 2018 @03:30PM (#17761089)
Common Language Runtime!
Re:Ask HN: Can engineers from Google or Facebook solve white... by amelius on Tuesday August 14, 2018 @08:36AM (#17757302)
> Here's an NP-hard problem you haven't heard of, write correct code for nlogn solution on whiteboard in language of choice

I guess that would be a trick-question then, as nobody ever solved an NP-hard problem in linearithmic time.

Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @10:03AM (#17757974)
I should have said "n log n heuristic approximate solution" (my defense: I'm actually a biologist pretending to be a computer scientist).

Many problem solutions at Google are effectively heuristic approximate solutions to NP-hard problems (or less hard but interesting problems).

There's no trick, they just want to know you can figure out how to compute things quickly so they can run online in a server or a batch job. And the things that need to be computed are often problems with high time or space complexity and the exact answer doesn't need to be known.

Re:Ask HN: Can engineers from Google or Facebook solve white... by amelius on Tuesday August 14, 2018 @10:31AM (#17758261)
But I suppose appropriate heuristic solutions are typically only "pondered about" and not "found" at the whiteboard, because they require extensive testing with real-world data to see if they are actually efficient in practice.
Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @10:35AM (#17758296)
Usually in situations like this the person asking the interview question already has already built the system in production that uses that heuristic and saw that it worked. with a good set of rules of thumb a smart person should be able to propose reasonable heuristic solutions that have a chance of working
Re:Ask HN: Can engineers from Google or Facebook solve white... by edanm on Tuesday August 14, 2018 @03:12PM (#17760956)
No, that's not necessarily how it works.

Often (most?) of the time, heuristic solutions are also found by Complexity Theorists, and they usually can prove that their solution is efficient for problems with certain characteristics, e.g. random data, not random data in a particular way, etc. These are then applied by the industry when they come across problems with these characteristics.

Re:Ask HN: Can engineers from Google or Facebook solve white... by amelius on Tuesday August 14, 2018 @07:05PM (#17762669)
Yes, that's simplifying the problem by making assumptions about the data. Except you often don't know what assumptions you can make. Better to check the assumptions using the data before devising an algorithm for the given type of data.
Re:Ask HN: Can engineers from Google or Facebook solve white... by edanm on Wednesday August 15, 2018 @12:24AM (#17763758)
I agree in principle. But imo in reality, what actually happens is:

1. Most data sets are roughly similar (or at least fall into one of a few cases).

2. Most algorithms are designed beforehand, on ideas of what data could be, not necessarily for actual data.

Take for example sort algs. Sure, you could look at your data and devise a sort that exactly matches it most effectively. But in reality, in most cases, people just use quick sort, which is proven to be efficient on most data sets.

Re:Ask HN: Can engineers from Google or Facebook solve white... by elromulous on Tuesday August 14, 2018 @08:40AM (#17757333)
I think that was meant to be a hyperbole.
Re:Ask HN: Can engineers from Google or Facebook solve white... by Silhouette on Tuesday August 14, 2018 @09:15AM (#17757575)
Indeed, although it's not unheard of for mathematics lecturers at university to throw in a question within a twenty-question problem sheet for their course that is actually equivalent to some important unsolved problem, on the off chance that one of their students sees things in a totally new way and makes a ground-breaking discovery. Solving something NP-hard in linearithmic time would certainly qualify...
Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @10:05AM (#17757990)
My favorite was this question, quoted verbatim from a test in my biophysics grad program:

What is the time resolved flourescence of a fluorophore in 4 dimensions?

The solution, explained to me by my friend who was a very smart physicist, was the first time I heard the word "tensor" (this was a long time ago, long before machine learning used that word) and I was obsessed with the idea that there was all this cool math you could use to solve hard problems.

Re:Ask HN: Can engineers from Google or Facebook solve white... by lynal on Tuesday August 14, 2018 @09:52AM (#17757871)
Do you have a cite/example of a lecturer doing that on an exam? Are there any examples where that has been successful?

I had never heard of that happening! It would be extremely cool if it ever worked.

Re:Ask HN: Can engineers from Google or Facebook solve white... by trocadero on Tuesday August 14, 2018 @09:56AM (#17757907)
Not an exam but:

>An event in Dantzig's life became the origin of a famous story in 1939, while he was a graduate student at UC Berkeley. Near the beginning of a class for which Dantzig was late, professor Jerzy Neyman wrote two examples of famously unsolved statistics problems on the blackboard. When Dantzig arrived, he assumed that the two problems were a homework assignment and wrote them down. According to Dantzig, the problems "seemed to be a little harder than usual", but a few days later he handed in completed solutions for the two problems, still believing that they were an assignment that was overdue.[4][7]

>Six weeks later, Dantzig received a visit from an excited professor Neyman, who was eager to tell him that the homework problems he had solved were two of the most famous unsolved problems in statistics

https://en.wikipedia.org/wiki/George_Dantzig

Re:Ask HN: Can engineers from Google or Facebook solve white... by q845712 on Tuesday August 14, 2018 @10:58AM (#17758506)
i audited university of Chicago's undergrad "hard-track" real analysis (i forget the name, but iirc there was an easier version of the course available).

The problem sets would have several questions you were expected to solve, and then often 1-3 questions marked with 1 or 2 stars. I forget exactly the language, but there was some explanation that you probably couldn't solve the 1-star problems, and solving the two-star questions could be someone's PhD thesis, as it would require novel insight into an unsolved problem.

The point was that it was a class for young aspiring mathematicians many of whom were used to being the smartest person around, and this helped them confront problems they couldn't solve without feeling like total failures. Also at that kind of school, you never know, someone might be able to solve one.

Re:Ask HN: Can engineers from Google or Facebook solve white... by telotortium on Tuesday August 14, 2018 @07:11PM (#17762703)
Not quite the same, but David Huffman was given a choice between writing a term paper on finding the optimal binary code and a final exam. Just before he was about to give up on the term paper, he solved the term paper problem by inventing Huffman Coding[1].

[1] http://www.huffmancoding.com/my-uncle/scientific-american

Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Wednesday August 15, 2018 @10:49AM (#17766421)
my own huffman story: I took huffman's class, cybernetics, in college (thinking that it would teach me how to build robots that interfaced with humans). However, the class was mostly about how to build circuits, and Karnaugh maps weighed heavily. The final problem on the final test was a tricky Karnaugh map and I got it wrong- although I knew that you could form squares that "wrapped" around the top and bottom edges, but he put a square that was wrapped around the four corners: 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 and I totally missed that the symmetry applied in both directions at the same time (I'd call that a tricky question rather than a trick question).

That class led to a ton of imposter syndrome that took me decades to overcome. Thanks, Huffman.

Re:Ask HN: Can engineers from Google or Facebook solve white... by netgusto on Tuesday August 14, 2018 @10:35AM (#17758299)
Not an unsolved problem, but allegedly a new solution: The Gauss sum of integers from 1 to 100.

https://www.nctm.org/Publications/Teaching-Children-Mathemat...

Re:Ask HN: Can engineers from Google or Facebook solve white... by feverfew on Tuesday August 14, 2018 @11:48AM (#17758999)
A teacher of mine, who studied maths at Oxford, was given a problem sheet on his first day and was told to finish by the time of his first tutorial. He made no progress and was reduced to tears as he thought he was incapable at Oxford. Turns out, he was given a set of unsolved problems on purpose :)
Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @01:14PM (#17759798)
this was known as nerd hazing in my grad school.
Re:Ask HN: Can engineers from Google or Facebook solve white... by yomly on Tuesday August 14, 2018 @10:11AM (#17758040)
Supposedly this person proposed the correct structure for diborane in his homework.

https://en.wikipedia.org/wiki/H._Christopher_Longuet-Higgins

Re:Ask HN: Can engineers from Google or Facebook solve white... by nraynaud on Tuesday August 14, 2018 @08:44AM (#17757356)
So now you have to know or invent a list of euristics that tend to go fetch the results first.
Re:Ask HN: Can engineers from Google or Facebook solve white... by TomMarius on Tuesday August 14, 2018 @08:35AM (#17757291)
> algorithmic primitives from which modern algorithms are born.

What is a good way to learn more about these?

Re:Ask HN: Can engineers from Google or Facebook solve white... by fsloth on Tuesday August 14, 2018 @08:47AM (#17757371)
I find my problem mapping methodology often leads me to remember these three books:

Aho and Ullmann: Foundations of Computer Science (old but really, really, really good)

Steven Skiena: Algorithm Design Manual

Abelson: Structure and Interpretation of Computer Programs

Re:Ask HN: Can engineers from Google or Facebook solve white... by 52-6F-62 on Tuesday August 14, 2018 @10:27AM (#17758224)
After a quick search, this came up:

Foundations of Computer Science, full book: http://infolab.stanford.edu/~ullman/focs.html

Also turns out Skiena's website is a very large resource!

http://www.algorist.com/algorist.html

Re:Ask HN: Can engineers from Google or Facebook solve white... by BJanecke on Tuesday August 14, 2018 @08:44AM (#17757357)
This book https://www.amazon.com/Data-Structures-Algorithm-Analysis-C-... Don't let the "in C++" scare you If you google about you'll find free copies of older editions online
Re:Ask HN: Can engineers from Google or Facebook solve white... by LandR on Tuesday August 14, 2018 @08:39AM (#17757322)
The only reason it seems to even learn them is to pass an interview...

What a utterly stupid and broken process. All it's testing is recall, that you've memorized some algorithms that 99% of developers will never need. Especially when these are really hard problems that people have studied for years, to think that anyone who hasn't memorised the solution is working this stuff out in an hour on a whiteboard is craziness.

Re:Ask HN: Can engineers from Google or Facebook solve white... by gumby on Tuesday August 14, 2018 @09:03AM (#17757492)
> The only reason it seems to even learn them is to pass an interview...

While I agree that the process is broken, a solid understanding of algorithms and data structures is very important for developers at my company. And nobody knows all, or even most of the algos or data structures! But we do have large amounts of data and some pretty complex analytic problems, and a poor design can cost a lot of time and AWS $. Likewise over-engineering something small is a waste of time not just in writing but maintaining it.

I agree that most e-commerce or business web developent probably don't need this level of formal skill.

Whiteboard questions are useful, but not for figuring out trick questions. Instead for figuring out how the candidate approaches problems.

Re:Ask HN: Can engineers from Google or Facebook solve white... by kamaal on Tuesday August 14, 2018 @09:48AM (#17757829)
Those look like software design skills. Also the type of systems you describes use something like Hadoop, and use things like Hive and Pig on top of it. Once you get the data out you use Python or R. And you generally use a standard library to work with. That really SQL + general programming.

What new problems are you working on that require you to invent novel algorithmic techniques?

Re:Ask HN: Can engineers from Google or Facebook solve white... by jcagalawan on Tuesday August 14, 2018 @10:14AM (#17758079)
Even with Hadoop, there's still algorithmic decisions that you have to make like whether to choose a stripes or pairs strategy when synchronization is needed[1], or choosing appropriate data structures for real time queries [2]. Sure something like Hive and Pig might work well enough for certain queries, but for some of the more complex queries where writing bare MapReduce or Spark is needed then these data structures and algorithms concerns pop up quite fast.

[1] https://lintool.github.io/bigdata-2018w/slides/didp-part02b....

[2] https://lintool.github.io/bigdata-2018w/slides/didp-part09b....

Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @11:22AM (#17758730)
MapReduce is filled with algorithms. The core system is basically a merge sort engine (the shuffler). In fact, if you ever wondered about the question "sort 2M integers in 1M RAM", well, that was Jeff asking people if they could understand that shuffle was out-of-core.

Another example is lexicographic range sharding, which uses reservoir sampling to compute optimal tablet key split points by doing a constant-space-and-time heuristic sampling over the keyspace.

I used to think MR was just brute force, but it has many levels of algorithms. Probably too many- at some point it because hard to analyze how the system worked because of the various kinds of hedging and recovery strategies.

Re:Ask HN: Can engineers from Google or Facebook solve white... by kamaal on Tuesday August 14, 2018 @10:23AM (#17758182)
I noticed that talk comes from a University. I understand thats a totally different domain of work.

Secondly, you are not inventing any algorithm there. You are only using algorithm invented by others.

Thirdly, you are only deciding what solution works better.

Lastly, in an interview you have to invent this algorithm in 45 minutes.

None of this involves you to invent a new algorithm. At least not in 45 minutes. I doubt if the person giving that talk himself did it so quickly.

Re:Ask HN: Can engineers from Google or Facebook solve white... by UncleMeat on Tuesday August 14, 2018 @11:21AM (#17758719)
Does your standard library have persistent functional thread safe radix trees? Because mine didn't so we had to write it.
Re:Ask HN: Can engineers from Google or Facebook solve white... by kamaal on Tuesday August 14, 2018 @12:59PM (#17759646)
Even if it didn't, that's really like an exception to most common use cases of those tools.

Which is precisely why testing candidates on such questions doesn't make much sense.

I understand every once in a while something like that needs to get written, but again that's like an exception.

Re:Ask HN: Can engineers from Google or Facebook solve white... by Pissompons on Tuesday August 14, 2018 @01:27PM (#17759923)
As an employer though, what do you want to happen when your employee runs into an exception? Do you want them to flounder and have no idea how to solve it or do you want them to figure it out by doing some mildly novel design work?
Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @11:50AM (#17759026)
now I'm curious. What's the use case?
Re:Ask HN: Can engineers from Google or Facebook solve white... by C4stor on Tuesday August 14, 2018 @10:00AM (#17757934)
Even after choosing a technology (like Hadoop), there's a lot of difference between the best and the worst algorithm to solve a problem.

For example, the reduce phase of MapReduce is pretty much "apply the algorithm you want on this List", and that's where knowing good list algorithms (for example) shine.

Re:Ask HN: Can engineers from Google or Facebook solve white... by kamaal on Tuesday August 14, 2018 @10:12AM (#17758053)
Sorry, in almost all cases its really choosing over several ways of Joining the data, not writing SELECT *, not writing cross joins and learning SQL well.

Which why I ask again. Please list your problem which is so novel it requires you to invent a novel algorithm.

Please note statistics is a science that has existed for centuries now. Unless you are in a university, its highly unlikely you have a problem that will need to you to work on something that novel.

Re:Ask HN: Can engineers from Google or Facebook solve white... by C4stor on Tuesday August 14, 2018 @10:21AM (#17758146)
I don't understand your point.

It seems to me you mix statisticals approaches and algorithms, meaning you completely ignore the fact that code runs on computers, and that computers have mechanical characteristics, making two implementations of the same statistical approach wildly different in performance.

I used to work at a company where some guys spent literally weeks inventing a fast way to do a dot product over huge vectors. Which doesn't mean they invented the concept of dot product.

Re:Ask HN: Can engineers from Google or Facebook solve white... by kamaal on Tuesday August 14, 2018 @12:52PM (#17759569)
>>I used to work at a company where some guys spent literally weeks inventing a fast way to do a dot product over huge vectors.

Very nice that you bought up this point. This is exactly what I was trying to point out. If a team of full time working people took weeks to arrive at a working solution, despite a massive body of open knowledge available as a reference to prior solutions, there is absolutely no way a candidate can give even arrive at a decent direction to the solution in under 45 minutes in a interview situation.

No one is saying algorithms are not useful.

But there is a very big difference between knowing an algorithm and inventing an algorithm. Testing the former is no indication of the latter, as illustrated by your own example.

Re:Ask HN: Can engineers from Google or Facebook solve white... by BJanecke on Tuesday August 14, 2018 @08:47AM (#17757372)
There is nothing about learning how basic data structures and algorithms work that won't help you in your day to day development.

You might be "fine" without it in a certain category of job, but rather than be dismissive about it you could be excited about having a massive wealth of information that you can use to do your job better.

There will always be something else to learn, wether it be how to apply Domain Driven Design to your work or how to work with graphs when munging data. It's always worth it.

[edit] Run on sentence

Re:Ask HN: Can engineers from Google or Facebook solve white... by octorian on Tuesday August 14, 2018 @08:53AM (#17757417)
> There is nothing about learning how basic data structures and algorithms work that won't help you in your day to day development.

Having a basic understanding of these things is NOT the same as being able to regurgitate them on a whiteboard, under the stress of the interview process.

Re:Ask HN: Can engineers from Google or Facebook solve white... by LandR on Tuesday August 14, 2018 @09:08AM (#17757524)
Exactly, I don't need to know this stuff of the top of my head. I can look it up...
Re:Ask HN: Can engineers from Google or Facebook solve white... by lordCarbonFiber on Tuesday August 14, 2018 @11:06AM (#17758590)
The reason we test for things is to verify you have enough domain knowledge to "look it up". A bad interviewer will ask you to write quick sort on the board, because if we've already gotten to the point of "implement quick sort" yeah we can just look that up. However, if you're given a collection of nodes and asked to do something with them; that's a bit more interesting. If you know nothing about graph traversal, or have never seen a tree (both not uncommon in people claiming to be principle engineers in my industry) how do you even know what to search for? Best case is you're smart and waste time coming up with a new solution from first principles; most likely it just never gets done.
Re:Ask HN: Can engineers from Google or Facebook solve white... by fsloth on Tuesday August 14, 2018 @08:52AM (#17757408)
"these are really hard problems that people have studied for years"

Because of this. So that when you encounter a problem, you know how it can be solved efficiently. If you disregard existing knowledge, you are likely to spend a lot of time cooking up something complex and half-assed that creates an unnecessary maintenance load.

Like music is composed of fundamentals, similarly most problems in computing can be decomposed such that familiar approaches can be applied to them. I think the categorization of Aho's "Foundations of Computer Science" is pretty much to the point on which fundamental formulations are practical to know.

Re:Ask HN: Can engineers from Google or Facebook solve white... by kamaal on Tuesday August 14, 2018 @09:50AM (#17757854)
>>If you disregard existing knowledge, you are likely to spend a lot of time cooking up something complex and half-assed that creates an unnecessary maintenance load.

Unless you are stuck on an Island coding during a vacation, not one person on earth faces this kind of a situation.

Almost anybody doing anything apart from basic beginner level coding work knows to look up to a solution on the internet if a solution is not scaling already.

Re:Ask HN: Can engineers from Google or Facebook solve white... by fsloth on Tuesday August 14, 2018 @11:33AM (#17758847)
"Almost anybody doing anything apart from basic beginner level coding work knows to look up to a solution on the internet if a solution is not scaling already"

This applies to some practical areas, but some are murky and need more than agile google-fu to waid through of an algorithmic jungle to a solution that provides added value to end user.

There is a discipline and domain dependent threshold where the internet suddenly becomes obscure and unhelpful when one is trying to find solutions. In these instances either you are solving the wrong problem, or the problem is quite complex and/or does not have a closed form/ready solution. The best thing to happen in these instances is that one can limit ones input domain just so that it maps to some algorithmic concept or another. It's not rocket science, but in these instances having an intuitive feel toward the big O behaviour and various algorithmic constructs is really, really helpfull.

Sometimes you just need to implement your own fudged QR decomposition and understand a little bit of numerics, or build custom octrees and whatnot. Couldn't really do it without my books. I do CAD and computational geometry stuff, YMMV.

Re:Ask HN: Can engineers from Google or Facebook solve white... by kamaal on Tuesday August 14, 2018 @01:05PM (#17759707)
In your area of work, the domain is computational geometry, so asking questions there is perfectly fine.

In fact that is exactly I was trying to imply. Questions need to be about the area of your work, rather than testing candidates on proxy subject totally irrelevant to their jobs.

Re:Ask HN: Can engineers from Google or Facebook solve white... by TomMarius on Tuesday August 14, 2018 @08:41AM (#17757339)
I'd learn it just for the knowledge, I have no desire to go into the interviewing process again. I agree that interviewing is a broken process.
Re:Ask HN: Can engineers from Google or Facebook solve white... by franzwong on Tuesday August 14, 2018 @09:08AM (#17757529)
I would say it depends. I have been working in this industry for 12 years but I don't need to use those knowledge. However, if you read source code of popular frameworks and systems, they use a lot of those algorithms and data structures.
Re:Ask HN: Can engineers from Google or Facebook solve white... by intkj on Tuesday August 14, 2018 @08:51AM (#17757405)
What better way is there to try and get the best assessment of someone’s coding ability in a 45 minute timeframe?
Re:Ask HN: Can engineers from Google or Facebook solve white... by TomMarius on Tuesday August 14, 2018 @09:04AM (#17757502)
IMO not doing it. Why'd you do it? There are much more important factors than someone's ability to do a whiteboard exercise while under stress. You can e.g. check their Github, ask them to make a simple example project at home, etc.
Re:Ask HN: Can engineers from Google or Facebook solve white... by sgc on Tuesday August 14, 2018 @10:28AM (#17758240)
This. Test them using the tools they will be using every day.
Re:Ask HN: Can engineers from Google or Facebook solve white... by LandR on Tuesday August 14, 2018 @09:49AM (#17757848)
You aren't testing their coding ability though you are testing their ability to remember how to implement a very specific algorithm.
Re:Ask HN: Can engineers from Google or Facebook solve white... by tootie on Tuesday August 14, 2018 @11:28AM (#17758786)
Here's my real question: How often do you solve those kind of whiteboard problems in your daily work? Obviously, you'd never be forced to solve them in 45 minutes while being judged, but how often are you actually solving computer sciency kind of problems in general as opposed to solving more software engineering type of problems?
Re:Ask HN: Can engineers from Google or Facebook solve white... by dekhn on Tuesday August 14, 2018 @11:45AM (#17758954)
Almost never. I use a whiteboard, but only to draw architectural diagrams. Very few engineers at google actually do hardcore CS on a regular basis.