Johannes Baum
Nov 6, 2020

--

Thanks a lot Diego.

I fixed it by checking for an entry before putting something into the previous map.

Btw: I can't change the condition in the while loop because it then only works for paths with an even length. In all cases with a path of odd length one queue will be empty before the other.

Again, thank you very much for your effort and help. I appreciate that.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Johannes Baum
Johannes Baum

Written by Johannes Baum

Creator of GridEngine (https://github.com/Annoraaq/grid-engine) 👾 Software Engineer 🚀 JavaScript/TypeScript

No responses yet

Write a response