It was interesting to use Queue in the last task, I hope I got it. Somehow I passed the last two tasks, even though the output for the "16" node remained wrong all the way. |Still, the solutions got validated. Can't complain, but I'm somehow worried that I missed learning something I should have.
Like without explanation about the tree data structure you give such hard tasks? Gosh...
Justin SmithLevel 41, Greenfield, USA, United States
17 August 2022
This was hard, but really cool. Step 4 is by far the hardest leap in logic, but once you have gotten there, Step 5 is just a continuation of that logic and not terribly hard in itself.
I just read a book about data structures and a huge part of it was about trees (needed 5 or 6 weeks for that). Without that knowledge I'm 100% sure that I never would have been able to solve this task.
Nice tasks! Hard, but doable without having to google any new classes etc.
Just used ArrayLists, Queues and a lot of if-statements.
And a commented "right solution" - finally! (even though I don't really understand it 😬)
Really need some explanation for parts 4 and 5. Like BlueJavaBanana said there's a ridiculous difficulty jump from parts 1 to 3. "do a little work on your own" I laughed .........
Dreadful task.
Part 1,2,3 are a joke easy.
Then boom make the tree logic with zero clues as to how they might want you to solve it.
Got a working solution? Well too bad the validator don't wanna know!
GO TO FULL VERSION