4 ms·
They cannot reverse a string even using the API call? If so are these people who have held down a programming job before?
by jiggy2011 14y ago
They cannot reverse a string even using the API call?
If so are these people who have held down a programming job before?
- jlgreco 14y agoI assume the question is something along the lines of "Implement a strrev in the language of your choice", not "Use the strrev equivalent in the language of your choice".
- Xion 14y agoEven with this addendum, there is a grey zone: reversed_string = string[::-1] Is it just using the equivalent, or a new implementation?
- jlgreco 14y agoIf I was the interviewer in that case I would probably accept that, with note that the person seemed clever. Then I would ask another harder question that I would hope would trip them up if they didn't understand iteration.