4 ms·
The string reverse question is a pretty poor one in my opinion, you'd be better off with FizzBuzz. The smart arse answer to your question would be new StringB
by djhworld 10y ago
The string reverse question is a pretty poor one in my opinion, you'd be better off with FizzBuzz.
The smart arse answer to your question would be
new StringBuilder("my string").reverse().toString()
- orless 10y agoThe question sticked as a tradition, everyone had it on the interview. Noone ever gave the smart arse answer, by the way, but some people said "you're not looking for the library method, obviously".