30
谁有一个中间名逗号?
您的挑战是将名称(字符串)作为输入,例如 Albert Einstein 并输出: Einstein, Albert 伪代码: set in to input set arr to in split by " " set last to the last element of arr remove the last element of arr set out to arr joined with " " prepend ", " to out prepend last to out …