赞
踩
A string s
can be partitioned into groups of size k
using the following procedure:
k
characters of the string, the second group consists of the next k
characters of the string, and so on. Each character can be a part of exactly one group.k
characters remaining, a character fill
is used to complete the group.Note that the partition is done so that after removing the fill
character from the last group (if it exists) and concatenating all the groups in order, the resultant string should be s
.
Given the string s
, the size of each group k
and the character fill
, return a string array denoting the composition of every group s
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。