is there space after the last element of output array or \n
got ac.there is no space after last element of the output array.
1 Like
In this problem it is not important if there are whitespaces ( ' '
, '\n'
) at the end of the line…