@@ -0,0 +1,369 @@
+package com.pengyifan.leetcode;%0A%0A/**%0A * Write a function that takes a string as input and returns the string reversed.%0A * %3Cp%3E%0A * Example:%0A * Given s = %22hello%22, return %22olleh%22.%0A */%0Apublic class ReverseString %7B%0A  public String reverseString(String s) %7B%0A    if (s == null %7C%7C s.isEmpty()) %7B%0A      return s;%0A    %7D%0A    return new StringBuilder(s).reverse().toString();%0A  %7D%0A%7D%0A

reverse string