您有一个字符串“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"
#笔试题目#
全部评论

相关推荐

哇哇的菜鸡oc:他这不叫校招offer,而是实习offer
点赞 评论 收藏
分享
09-23 08:41
已编辑
门头沟学院 Java
牛客吹哨人:可恶!它越来越嚣张了...哨哥晚点统一更新到黑名单:能救一个是一个!26届毁意向毁约裁员黑名单https://www.nowcoder.com/discuss/1525833
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

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