Closed maheshj01 closed 11 months ago
@saurabh47 I think the solution for this issue is to create another array of length 4 that stores the values of all 4 nodes, What do you think?
I have submitted a change is that the correct way to solve this issue?
submitted the change
let me know once your changes finalize @maheshmnj
This is ready to merge @saurabh47
Also let me know if you have any topics in mind that needs to be added. I just realized the adjacency_list implementation should also implement a function to show "if path exists between two nodes."
Adds an adjacency list for a simple case for graphs like this
But this would fail for random numbers (WIth index out-of range error) Because we only allocate an array of length 4.(since we only have 4 nodes in the array).