The discussion is exactly this, that leetcode is used to test programming proficiency, but it's an inadequate bar.
The parent is postulating that it's a lie; that actually leetcode tests for malleability, and we're getting bent out of shape because we think it's a poor test of coding ability.
However it might be a good test of malleability, and that might actually be it's intended purpose, but that's not communicated.
200 person tech companies are doing the same.
So I don't think these interviews evaluate the candidate's ability to solve complex and abstract problems. They seem to evaluate the candidate's ability to grind contrived sophomore-level computer science homework. Experience solving the real-life version of the problem rather than the academic one is unwanted.
Find the (gotcha) in this string and emit len(gotcha) ... Now do it computationally efficiently (or be able to explain tradeoffs to other resources).
But manipulating sequences comes up a lot in many contexts. Usually it's sequences of more complex things: instructions, packets, files, polygons. It's hard to assign tests directly on those, because you have to explain the objects themselves first. So it's a reasonable shortcut to test ability to manipulate sequences of characters.
Go makes normal string operations tricky due to rune being an alias for int32, ranging a string gives []byte indexes ...
I guess that really depends on the language. IMHO, if you can solve a reasonably complex problem using a language, you know that language.
LeetCode problems are solved with under 50 lines of code, using textbook models.
I don’t know where people get this idea. Leetcode used to test programming proficiency
I feel the only reason companies continue to take leetcode to absurd levels is because (a) they think harder questions would get them better engineers and (b) other companies are doing it