Earlier quoted context omitted.
I had a coderpad facebook phone screen last week, interviewer said " that code the won't compile, can you see why?" .. It was missing a semicolon. on a related note, I write scala on daily basis but scala is not that well suited for coding interviews, I found.
Facebook likes their interview nonsense, but stores passwords in plaintext. I think the credibility of the system is in question
How to Ace the Google Interview: Ultimate Guide
131–140 of 239 posts
Re: How to Ace the Google Interview: Ultimate Guide
#132Earlier quoted context omitted.
> ... and candidate wasn't able to realize that even with hints. He said why. Why did you misquote?
That is why they were "dinged". Not why those things matter in whiteboard coding.
Re: How to Ace the Google Interview: Ultimate Guide
#133This is getting ridiculous. These guides to interviewing at specific companies are starting to sound like the video game cheat code books of old. If the process is so nuanced that there's an entire industry around these types of guides (and Google even highly recommends you buy them!), then the process is fundamentally flawed. But we already knew that, and as long as others are still playing the game, we are forced t…
I completely agree. Even Google suggest to "practice writing syntactically correct code on a whiteboard". This is clearly a useless skill as a software engineers except in getting a job at companies that do whiteboard interviews. Did you try to refactor code on a whiteboard? How are they able to find people that are able to efficiently debug problems? When I interview people I tell them, "Bring your own laptop set up…
I'd be a lot more comfortable with "We have a machine set up for you, but you can also bring your laptop," as long as the machine is actually well set up and you don't fall into the implicit expectation that passing candidates will bring their laptop anyway. (Most of them will, in the end.)
Re: How to Ace the Google Interview: Ultimate Guide
#134Earlier quoted context omitted.
That's because Scala doesn't have nearly enough semicolons. Kidding aside, why do you feel Scala is unsuited to coding interviews, assuming the interviewer well-understands the language?
hard to write heap sort in functional style with immutable collections. I guess you could write imperative style code.
Anyway I'd think one might use an array and not some other list/collection.
Re: How to Ace the Google Interview: Ultimate Guide
#135Earlier quoted context omitted.
That's because Scala doesn't have nearly enough semicolons. Kidding aside, why do you feel Scala is unsuited to coding interviews, assuming the interviewer well-understands the language?
hard to write heap sort in functional style with immutable collections. I guess you could write imperative style code.
Re: How to Ace the Google Interview: Ultimate Guide
#136This is getting ridiculous. These guides to interviewing at specific companies are starting to sound like the video game cheat code books of old. If the process is so nuanced that there's an entire industry around these types of guides (and Google even highly recommends you buy them!), then the process is fundamentally flawed. But we already knew that, and as long as others are still playing the game, we are forced t…
Or it means the process is well defined enough that you can create a level field by telling everyone how it works through guides like this instead of giving connected people a leg up due to inside knowledge of a poorly defined process.
Re: How to Ace the Google Interview: Ultimate Guide
#137Earlier quoted context omitted.
I disagree. Doing competitive-style programming and learning all sorts of weird algorithms has not made me a better engineer. I can count on one hand the number of times in my career that I have had to design or use an "interesting" algorithm - and no, not in the "not knowing what you don't know" sense where I could have used one if only I'd known about it.
I'm very critical of this approach to interviewing in general, but it also isn't the same as competitive programming and it isn't focused on "interesting" algorithms. It is far more focused on understanding how to use data structures and the trade offs between them. Chapter 3 of "The Algorithm Design Manual" (which is fittingly titled "Data Structures") is really the most useful reference for the majority of these in…
1) binary trees for which theres usually a STL
2) some sort of odd string / array manipulation that never comes up in real life
3) some sort of linked list manipulation where again there is an STL for that and/or wouldn’t come up in real life
4) some optimized algorithm that literally took the first person years to discover prims vs kruskals MST for example, but now is expected to “figure out” on the fly.
5) Expects you to solve all these tasks with an insane time pressure that again is not a simulation of real life, it just makes it stressful almost as a rite of passage
Re: How to Ace the Google Interview: Ultimate Guide
#138Earlier quoted context omitted.
I completely agree. Even Google suggest to "practice writing syntactically correct code on a whiteboard". This is clearly a useless skill as a software engineers except in getting a job at companies that do whiteboard interviews. Did you try to refactor code on a whiteboard? How are they able to find people that are able to efficiently debug problems? When I interview people I tell them, "Bring your own laptop set up…
I agree with your comment in general, but, I worry about the bias of "Bring your own laptop set up to be able to code and debug" - some perfectly qualified candidates don't have laptops. Some perfectly qualified candidates do have a laptop but don't code much at home, and the setup they're used to is their work machine or a school lab computer. We already have too much bias in favor of code-all-day-code-all-night can…
So get one. You can get a good one from the pawn shop for $200. You can afford that if you're interviewing for a 6 figure job.
Edit: I'm not kidding. I've bought $200 laptops from the thrift store, usually for travel purposes so I don't worry about losing/breaking it.
Re: How to Ace the Google Interview: Ultimate Guide
#139Earlier quoted context omitted.
> But I've had candidates that try to make up language features, and that doesn't fly with me. This piqued my curiosity. Can you give an example?
I'm still floored by how many candidates I've talked to that assert with great confidence that the local variables they declare will still be there with the same values when they call the function recursively. And most recently, when iterating over a string's characters the underlying string methods KNOW that the string is being iterated and will pick up at the current iteration point. For example, you've got the str…
Ruby 2.3 and later ships with this gem and it will automatically be required when a Ruby process starts up. No special setup is required.
It doesn't call the method for you, but it does do the did-you-mean automatically if you misspell and it's close enough.Re: How to Ace the Google Interview: Ultimate Guide
#140Earlier quoted context omitted.
I agree with your comment in general, but, I worry about the bias of "Bring your own laptop set up to be able to code and debug" - some perfectly qualified candidates don't have laptops. Some perfectly qualified candidates do have a laptop but don't code much at home, and the setup they're used to is their work machine or a school lab computer. We already have too much bias in favor of code-all-day-code-all-night can…
> some perfectly qualified candidates don't have laptops So get one. You can get a good one from the pawn shop for $200. You can afford that if you're interviewing for a 6 figure job. Edit: I'm not kidding. I've bought $200 laptops from the thrift store, usually for travel purposes so I don't worry about losing/breaking it.