DEV Community

Discussion on: Can you solve this interview problem?

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Yes I can solve the interview problem (as in, the problem with interviews in the industry in general!).

I would look at the person interviewing me dead in the eyes and ask "who hurt them". What made them think in any way this question remotely resembles something you would need to do in the real world?

I would look at them asking why on Earth they thought it was a good interview question, what skills it proved I had that I would need to learn and just generally ask them why we can't create an interview process that actually proves talent.

I would ask them what happened to our industry where they thought this question is remotely useful and then would slowly rise from my seat, thank them for the opportunity and walk to the door.

Just as the door is about to close I would say "And please can I have the 🍬 treat 🍬 you promised me for solving it" and walk away, still searching for a company that doesn't ask dumb interview questions. πŸ˜‰πŸ€£

Being Serious for a second, besides the dig at our industry and it's stupid interview practices it was a fun little brain teaser. Have a β€πŸ¦„ for a nice morning wake up challenge!

Collapse
 
0shuvo0 profile image
Shuvo

What kind of question would be good to know interviewees problem solving capability in about an hour?

Collapse
 
grahamthedev profile image
GrahamTheDev

The concept is to build upon previous bits to show a persons thought process and how they organise (and reorganise) code.

Needs some refinement but I think a concept like this is way better.

Thread Thread
 
0shuvo0 profile image
Shuvo

You can't have such basic one for intermediate or senior role

Thread Thread
 
grahamthedev profile image
GrahamTheDev

If you think it is too easy for senior devs then you can add more complexity.

It is the concept and what it looks at that is more important.

Instead of us testing if they can remember some obscure algorithm (that you would just look up) you can assess their thought process.

If you read the article you will see that the actual problems are not what is being tested, instead we are testing:

  • their thought processes,
  • refactoring,
  • thinking about extensibility,
  • following instructions and briefs and knowing where to ask questions etc.

These are the skills that matter in a team, I don't care if you can write a "travelling salesman problem" solve from memory, I just care that you can order your thoughts into a logical path to complete a given challenge in the real world and create code that is easy to maintain.

Also, it is just a concept, you can make it as difficult as you want by just adding harder requirements after point 8.

Thread Thread
 
0shuvo0 profile image
Shuvo • Edited

To be honest I never liked CP
My leetcode rating it 1 star
But most tech companies will either demand a degree which I don't have or good cp skills

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Yeah, and that is half the issue as it skews the thought process!

It is always fun seeing how people spend months practicing coding interview problems who have been developing for years as it isn't what they do each day!

I always imagine it to be like a lorry driver being asked how to replace a clutch...kind of related but doesn't tell you how good they are at driving and a skill they will probably never need to use! 🀣

Thread Thread
 
0shuvo0 profile image
Shuvo

Maybe some day it will change

Collapse
 
0shuvo0 profile image
Shuvo

Many DSA/CP related questions won't resemble something you would need to do in the real world

Collapse
 
0shuvo0 profile image
Shuvo

And yes its quite fun πŸ˜…
The permutation part is what people struggles to figure out

Collapse
 
nombrekeff profile image
Keff

Yeah, I would run away from there as fast as possible. Can't imagine what the interviewer could do, seems like a psychopath really.

Just kidding, but I agree, this is not the type of question we should be asking in an interview, it shows nothing of value for the real world. I think this is more of a practice exercise for begginers more than anything. Though it's a fun little problem

Collapse
 
0shuvo0 profile image
Shuvo

Actually it was really interesting
Because the like you'd finally decode would lead you to the next step of recruitment

Thread Thread
 
grahamthedev profile image
GrahamTheDev • Edited

Haha now this would make it more interesting as remote interview technique, you can only proceed to the next step if you can decode the link.

You could also make it time sensitive so if they take too long to complete the task the link expires!

Still hate questions like this (yet again, not a stab at you, just our industry), but that line of thinking, a "follow the breadcrumbs" type of coding interview, that is an awesome and fun idea 🀣

Thread Thread
 
nombrekeff profile image
Keff

That's really cool, gamifing it and making it somewhat of a puzzle. I guess the complexity would increment as you solved more steps right?

Thread Thread
 
nombrekeff profile image
Keff

Yup, that's quite cool actually, making the process a bit more fun.

 
0shuvo0 profile image
Shuvo • Edited

Yes, there also as time limit of link

Thread Thread
 
0shuvo0 profile image
Shuvo

maybe if we prove P = NP the way they Interview people will also change πŸ˜…

Thread Thread
 
moopet profile image
Ben Sinclair

You're saying it would be a valid question as part of a trail of clues?
I've always liked those provided they have any logical reasoning behind them. But this one doesn't, this one has two options:

  1. it gives you the steps they took toobfuscate their string and you have to reverse that, and maybe throw some permutations in there until you get the right answer, and hope that there isn't more than one answer that is a valid URL.
  2. it gives you the string and says "get on with it"

1 is an exercise demonstrating you can do a few different tasks, laid out more like chores, and 2 could be absolutely anything and is a game of nonsense rather than any kind of logical or lateral thinking.

Collapse
 
mudlabs profile image
Sam

Structuring interview questions at any company should be straight forward. Compile issues the company has actually faced and overcome recently. From that list produce question related to the role so you can see if a candidate can at best solve problems the company tends to have, or at least demonstrates good reasoning around those issues.