DEV Community

Discussion on: Longest substring without repeating characters, solving Google interview question.

Collapse
 
itsjzt profile image
Saurabh Sharma

I never understand why google asks this kind of question?

Why dont they just ask people to write code (of their domain) and check on based on code of domain rather than some abstract problem.

Collapse
 
jrogers8835 profile image
jrogers8835 • Edited

Fair question, I don't work for google but I've done tons of coding interviews for the company I work for and here are a few issues I ran in to when I tried domain coding problems:
1) if they provide the company value, then they're supposed to be paid
2) often time domain related problems require too much background... you spend half the interview answering questions about domain concepts instead of seeing them perform
3) the domain itself could be proprietary or the related code.

Generally speaking domain is easy enough to teach in my experience. When I'm interviewing I want to strip away they business stuff and see if you can convert a problem to working code. How efficiently you do that (and communicate what you do) speaks volumes.

Collapse
 
akhilpokle profile image
Akhil

This question was asked for a generalist SWE interviews. If a person applies for a Frontend developer / a Backend developer / NoSQL developer, then questions related to those fields are asked.

Generally, people go with Generalist interview because :
1 > domain related questions go in-depth.
2 > to ask such a question you need a person who knows ins and outs of the domain so someone senior level.
3 > if a domain expert is interviewing you, that means he has taken time out of his daily project goals to interview you, which means a delay in reaching goals and a break of flow.
4 > They want someone who could think about solving the problem irrespective of domain and many real-world applications use algorithms and data structures.

Collapse
 
itsjzt profile image
Saurabh Sharma

Makes sense