如果使用C#的話,需要使用Array的類別方法。 public class Solution { public void ReverseString(char[] s) { Array.Reverse(s) } }
確定! 回上一頁