Kind of like that math teacher accusing me of cheating because I did well on the exam.
Kind of like that math teacher accusing me of cheating because I did well on the exam.
But to actually answer your question. Say the role is in JavaScript, say a Frontend role and the candidates want to answer it in Python instead of JavaScript. Then it is possible that the candidate is a Leetcode junkies.
Why I know? Because I do this myself. And definitely no points subtracted from knowing and using Python.
Debating if would be worth taking the hit of switching to python now.
In Python you just need to focus on the actual algorithms than the actual minuteae details such as "let me create a function to copy this array". As long as you are aware of limitations such as Python int has no restriction like Java (int32, int64) etc, because some problems require you to look into that restrictions. Python string concatenation is also O(n^2) because there is no stringbuilder in Python. Just be aware of those and it should be fine.