Solution to Sub-task: Split Line

The solution to the Sub-task "Split line" of the project "Justify Text".

We'll cover the following

Split line

In this step, take an array representation of the line and split it into two sub-array. The first sub-array satisfies the document width constraint.

Get hands-on with 1400+ tech skills courses.