Text Wrap:
You are given a string and width .
Your task is to wrap the string into a paragraph of width .
Input Format
The first line contains a string, .
The second line contains the width, .
Constraints
Output Format
Print the text wrapped paragraph.
Sample Input 0
ABCDEFGHIJKLIMNOQRSTUVWXYZ
4
Text Wrap || Hackerrank Solution
Reviewed by CodexRitik
on
November 09, 2020
Rating:
![Text Wrap || Hackerrank Solution](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcM8DsVtTnmI_quTUyxllcj2KflkRv7JY_wH4cexi-j-opf0ybBoNTM33Pi5qbVVG1qkv7pjy-V2BUi2nkyUCfuEK2o-q0k_MtrVO6sNeil8Unxl_IYQSnGaEHj66J3CFlbW-UlMRoIwE/s72-w200-c-h100/q141s3xfs.png)
No comments: