#57. 字符串前两字符首尾添加

    ID: 57 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-1gesp3字符串

字符串前两字符首尾添加

String Manipulation

Background

Problem Description

Given a string, take its first 2 characters. Construct a new string by adding these 2 characters to both the front and the back of the original string. For example, if the input is "kitten\