My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Any suggestions for an approach to this question? https://www.careercup.com/question?id=5677905146281984

Savar Mehrotra's photo
Savar Mehrotra
·Mar 15, 2018

Question Link

The two approaches that I could think of were

  1. Backtracking
  2. Modified Dijkstra's

My code for modified Dijkstra's is here Code