return (s == null || s.length() < 1) ? s : new StringBuilder(s).reverse().toString();
@li-haiyang-18 Li, This isn't a good answer for interviews.
@iceman28 And what answer is? Using two pointers?
@Kexin_Li Yes, two pointers is the best solution and is what should be used in an interview.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.