Dream Or Reality
Description:
When no more interesting kata can be resolved, I just choose to create the new kata, to solve their own, to enjoy the process --myjinxin2015 said
Story
John went to the cinema to see the film Inception
. His view of the world has changed. He began to believe that the story of the film was taking place around him. He is convinced that some dream maker is destroying his dream, so that he can't tell the difference between dream and reality.
Until he began to notice some little secret: in the dream, time is stopped.
Task
Complete function dreamOrReality
. Through your judgment, returns your situation: "Dream"
or "Reality"
.
Tool
A preloaded timer is your tool. You can use timer.now()
to get the current time of dream or reality.
Note&Hint
Sorry, there is no fixed test. Because you don't know what will happen in the next second ;-)
All tests will be generated after you click ATTEMPT
.
As long as you pass 10 tests in the next 12 seconds, you are successful in completing the task ;-)
Yes. We don't need "high performance code" ;-)
Similar Kata:
Stats:
Created | Dec 29, 2016 |
Published | Dec 30, 2016 |
Warriors Trained | 138 |
Total Skips | 2 |
Total Code Submissions | 1804 |
Total Times Completed | 55 |
JavaScript Completions | 55 |
Total Stars | 6 |
% of votes with a positive feedback rating | 87% of 30 |
Total "Very Satisfied" Votes | 23 |
Total "Somewhat Satisfied" Votes | 6 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 10 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |