Hacker News new | ask | show | jobs
by qwe----3 1 day ago
> when I need to recall off the top of my head the proper way to instantiate a list or heap in X language

You only need to know for one though...

1 comments

It was an example.

I guess even an off hand example, now must be completely 100% technically correct , or you aren't worth a job?

And, I'm pretty sure in "X" language, you can call them differently. Since it is "X", how do you know.

Just use python for all practical programming problems. Lists, sets, and dicts are all you need for most leetcode problems; dynamic typing is convenient; there's good ergonomics for http and other random utility tasks; and pretty much every company is cool with python in an interview. You'll probably only see language trivia questions for languages you claim a specialty in (there's a huge market for C++ specialists, for instance).
Leetcode/hackerrank problems aren't that high variance, dedicate a weekend studying and you should be good.
> I guess even an off hand example, now must be completely 100% technically correct , or you aren't worth a job?

It's a litmus test, and not a terribly challenging one. It's solved by spending a week doing simple coding challenges.