ProgrammerHumor

averageTechJobInterview

averageTechJobInterview
https://i.redd.it/nnrk7vzreocf1.png
Reddit

Discussion

Brahminmeat
:ts:

DataDog told me the next step was leetcode and I told them they can just take my name off the list

9 hours ago
VeterinarianOk5370
:js::ts::py::j:

Lol, datadog and Komodo health interviews both absolutely suck. I did 5 rounds with Komodo 4 off which were technical. They messaged me with “good news” then never messaged back. I think they were right that was good news

7 hours ago
fourdoorsedan

Mr May

5 hours ago
ColaEuphoria
:c::cp::py::asm::rust:

Yeah just walk out

9 hours ago
ClipboardCopyPaste
:js::cs:

If that solution takes anything but O(1) time, you're automatically disqualified

9 hours ago
yossi_peti

Longest common prefix isn't even that hard though. Just iterate through both sequences from the beginning until they don't match. It seems in the same tier as fizzbuzz for a "weed out people who lack basic programming skills" question.

7 hours ago
Banes_Addiction

For 2 ordered containers, as you say it's trivial. Literally a one-liner.

For N, not so much.

5 hours ago
yossi_peti

Why not? It still seems like it could be a one-liner. You just advance until one of the N doesn't match or you've reached the end of one of the strings.

4 hours ago
Banes_Addiction

I don't think we're describing the same problem.

Let's do strings.

Blue
Red
Black
Bluegreen
Brown
Orange
Yellow
Periwinkle
Cornflower
Orangered
Pink
Cerulean
Blackpink
Green
Off-white
Cream
Eggshell

What's your algorithm for the longest prefix that appears in multiple strings. Eg, in this case, "Orange".

4 hours ago
yossi_peti

The longest common prefix of all of these strings is the empty string "" because they do not all share the same first character.

4 hours ago
Banes_Addiction

Oh, if it's for every string then that's absolutely trivial.

You'd learn more from "what's an integer" (extra funny if you ask a Javascript dev).

4 hours ago
FerricDonkey

It's still easy, just more steps, and I still wouldn't want to hire a developer who couldn't figure it out. 

4 hours ago
Banes_Addiction

Right, but that's an interesting question. That's testing a skill.

Just getting to "you can very easily do this O(n log(n))" is useful. Can you do it O(n)? My way isn't.

4 hours ago
CryonautX

So what are we thinking here? I'm thinking a tree with each letter as a node with frequency and then see what's the deepest we can traverse where frequency is 2 or more.

2 hours ago
Brahminmeat
:ts:

“basic” programming skills that are necessary for the job though?

6 hours ago
yossi_peti

Yes, knowing to loop through things and compare things to each other is necessary.

6 hours ago
git_push_origin_prod

Why write it in leetcode? They’re running leetcode on their app servers?

5 hours ago
yossi_peti

I'm not sure what you mean. Leetcode isn't a programming language or technology, it's just a website with coding challenges, so I don't know how or why you would run it on an app server (unless your app is leetcode itself).

5 hours ago
Leather_Trick8751

And remember you have to do it inplace no extra space and o(1) and same time proving p=np

6 hours ago
RichardP2910

Longest common prefix is something that can actually come up irl and is pretty simple tho

6 minutes ago