Rust solution. Simple problem; simple solution. Scan the characters to get the index of the k -th space, then slice the original string to size and return.
確定! 回上一頁