This week’s missions: Cut Sentence, Speech Module and Life Counter
Great news! We’ve significantly improved website’s speed performance and fixed some bugs. Enjoy!
Test yourself and have fun with the missions we have for you:
These missions aren’t new but they are included to the Monthly LeaderBoard and Editors Choice Solutions.
The first mission is called “Cut Sentence” and here you should truncate a sentence to a length that does not exceed a given number of characters.
cutSentence("Hi my name is Alex", 4) == "Hi..." cutSentence("Hi my name is Alex", 8) == "Hi my..." cutSentence("Hi my name is Alex", 18) == "Hi my name is Alex" cutSentence("Hi my name is Alex", 20) == "Hi my name is Alex"
The second one is the “Speech Module” mission where you have to write a new speech module for the robot.
speechModule(4)=='four' speechModule(143)=='one hundred forty three' speechModule(12)=='twelve' speechModule(101)=='one hundred one' speechModule(212)=='two hundred twelve' speechModule(40)=='forty'
And the third is the “Life Counter” where your task is to count how many live cells will be on the grid at the Nth tick.
lifeCounter(((0, 1, 0, 0, 0, 0, 0), (0, 0, 1, 0, 0, 0, 0), (1, 1, 1, 0, 0, 0, 0), (0, 0, 0, 0, 0, 1, 1), (0, 0, 0, 0, 0, 1, 1), (0, 0, 0, 0, 0, 0, 0), (1, 1, 1, 0, 0, 0, 0)), 4) == 15
Check out some interesting articles we’ve selected for you:
- Hey! How cool is that? Top-level await enables developers to use the await keyword outside of async functions. It acts like a big async function causing other modules who import them to wait before they start evaluating their body. Hurry to find out more!
The users who’ve made the TOP 3 this month are Manana_Gedevanishvili, juacompe, and Taylor_Page. You are doing great, guys! Keep on coding!
- No Ads
- No Limits
- More Content
Welcome to CheckiO - games for coders where you can improve your codings skills.
The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.Join the Game