Skip to content

sachinkshetty/WordWrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

given a sentence i would like to wrap the sentence at a specified line length. it should not split the words like "London" in "Lon" and "don". rather it should move the entire word into new line. if the word length is greater then line length then the word should stay on same line.

#example-1

  • sentence = "i would like"
  • line length = 4
i
would
like

#example-2

  • sentence = "i would like"
  • line length = 10
i would
like

#example-3

  • sentence = "i would like to wrap"
  • line length = 10
i would
like to
wrap

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages