6 kyu

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" ;-)

Puzzles

Stats:

CreatedDec 29, 2016
PublishedDec 30, 2016
Warriors Trained138
Total Skips2
Total Code Submissions1804
Total Times Completed55
JavaScript Completions55
Total Stars6
% of votes with a positive feedback rating87% of 30
Total "Very Satisfied" Votes23
Total "Somewhat Satisfied" Votes6
Total "Not Satisfied" Votes1
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • myjinxin2015 Avatar
  • Voile Avatar
Ad