5 ms·
Even with this addendum, there is a grey zone: reversed_string = string[::-1] Is it just using the equivalent, or a new implementation?
by Xion 14y ago
Even 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.