• 💡 Latest series of missions with light bulbs

checkio
 

Hello CheckiO users! 🙂

💪 Challenge yourself with the full series of missions with light bulbs, which will be highly useful in understanding the concept of processes and evaluation of the processes’ performance. After solving each mission you'll gain access to the next one:

The first one is called Lightbulb Intro where you have to determine how long the light bulb has been turned on depending on the the time during which a switch on/off button has been pressed.

sumLight([
    new Date(2015, 1, 12, 10, 0 , 0),
    new Date(2015, 1, 12, 10, 10 , 10),
]) == 610

sumLight([
    new Date(2015, 1, 12, 10, 0 , 0),
    new Date(2015, 1, 12, 10, 10 , 10),
    new Date(2015, 1, 12, 11, 0 , 0),
    new Date(2015, 1, 12, 11, 10 , 10),
]) == 1220

sumLight([
    new Date(2015, 1, 12, 10, 0 , 0),
    new Date(2015, 1, 12, 10, 0 , 1),
]) == 1

The second mission is Lightbulb Start Watching and here you have to find how long the room was lit, starting from a certain moment.

The third is the Lightbulb End Watching mission and here you also have to figure out how long the room was lit, but consider the time when it’s necessary to end the observation.

The fourth mission is called Multiple Lightbulbs where you still need to determine how long the room will be lit between start_watching and end_watching period, but now you have to consider more than one light bulb.

The fifth one is called Lightbulb Operating where you have to continue determining how long the room was lit considering that the light bulb can in total work only one hour.

The sixth mission is Lightbulb More and here you have to find out how long the room was lit enough considering the amount of light bulbs required to do that.

Our congratulations to the winner of January 2021 - vincent.tscherter - you are totally Awesome and we are very glad to have you here with us! 👏🏼

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