您有一个字符串“This is a test that

you have a string "This is a test that has to be done using Javascript".Split into multiple lines of text without hyphenating words from right to left where the maximum length of the line is 20 characters(you can break only between words and the next line can't start with a space)

您有一个字符串“This is a test that has to be done using Javascript“。将文本分成多行,不从右到左连字符,其中行的最大长度为20个字符(只能在单词之间断开,下一行不能以空格开头)
"using Javascript
that has to be done
This is a test"
#笔试题目#
全部评论

相关推荐

不愿透露姓名的神秘牛友
03-30 21:35
爱蜜莉雅碳劝退测开:裁员裁大动脉了
点赞 评论 收藏
分享
03-04 07:14
门头沟学院 C++
黑皮白袜臭脚体育生:老板:都给工作机会了还想要工资,哪来这么多好事
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务