BigBrainKotlin#3 | Spin My Words…

BigBrainKotlin (6 Part Series)

1 BigBrainKotlin#1 | Find Max and Min
2 BigBrainKotlin#2 | Mumbling…
2 more parts…
3 BigBrainKotlin#3 | Spin My Words…
4 BigBrainKotlin#4 | Among Us
5 BBK#5: The Morse Code 🤫
6 BBK#6: Equal sides 🤝

Don’t be a Java-ish dev in Kotlin-ish world, improve your knowledge about Koltin Standard Library and write better Kotlin code. If your Java dev migrating to Kotlin this will help you learn alot!

The aim of these articles is not hate on Java, but to help people learn various ways in which they can write the same logic better and more Kotlin standard library focused way.

Question:
Write a function that reversed all words in the String whose length is five or more letter words reversed.

spinWords( "Hey fellow warriors" ) => returns "Hey wollef sroirraw" 
spinWords( "This is a test") => returns "This is a test" 
spinWords( "This is another test" )=> returns "This is rehtona test"

Enter fullscreen mode Exit fullscreen mode

Try it out yourself, or submit it in the comments before checking out my solutions.

BigBrainKotlin#3

Hope to see you on the other side…

Until next time. Happy Hacking! ‍

Stalk Me :
LinkedIn | Medium | Twitter | StackOverflow | CodeWars |WorkX |Github |Instagram |Youtube

BigBrainKotlin (6 Part Series)

1 BigBrainKotlin#1 | Find Max and Min
2 BigBrainKotlin#2 | Mumbling…
2 more parts…
3 BigBrainKotlin#3 | Spin My Words…
4 BigBrainKotlin#4 | Among Us
5 BBK#5: The Morse Code 🤫
6 BBK#6: Equal sides 🤝

原文链接:BigBrainKotlin#3 | Spin My Words…

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容