Restaurant

  • 18
  • Locked
1. Figure out what the program does. For some reason, the waiter isn't bringing the prepared dishes out to the tables :( 2. Fix the bug. Hint: it's one line
You can't complete this task, because you're not signed in.
Comments (13)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
matemate123
Level 32 , Kraków, Poland
19 January, 15:49
So intimidating task, but if I did it, everyone can. When you finally lost your hair, something click, and you'll see solution.
Tasmoda Android Developer
19 July 2022, 13:16
Felt like a real programmer after completing this in one go😂.
LuisRC
Level 39 , Gijón, Spain
10 March 2022, 10:44
Hard task. It took me a lot to see what was going on inside and how order the pieces inside of it.
Ibrahim
Level 41 , Sheffield, United Kingdom
26 December 2021, 11:03
Took me ages to understand how the program was working but finally did it. Tip for anyone who is struggling with this, run the program until it finishes, then go to first line of the output and read through it. If you understand that then you will understand how to fix it.
Justin Smith
Level 38 , Greenfield, USA, United States
24 September 2021, 00:58
This is a good one. It can be solved quite algorithmically, just find the part that prints the line that isn't printing, identify why it isn't printing, and well, you can figure out the rest. But I really hope there's a chapter coming explaining the Queue thing. I kinda get what it's doing but not really.
Karas Java Developer
23 July 2021, 20:55
It looks daunting as it is many parts, but it is worth those 18 pieces of Dark Matter. The Hint in the instructions really gives it away. The hint after you run it for the first time gives you where exactly. Loved it.
Vlad
Level 29 , Khon Kaen, Thailand
19 June 2021, 14:01
really enjoyable task, also helps to get used to analyzing others' code to understand what every bit of it does
Dawid Bujnicki Junior Developer
3 June 2021, 21:32
This one was fun :D Solution is very simple, but it took me a while to dig deep into the code and analyze what it really does :D
Andrey
Level 18 , St. Petersburt, Russian Federation
18 July 2020, 19:41
Nice one
BlueJavaBanana
Level 37
17 May 2020, 14:32
Yeah, you need to read and understand EVER line in this code, else you won't really spot the issue. The actual fix is straight forward, but you must spend an hour or two wrapping your head around what each bit does. This is a tough cookie!