+ 1

Topological Sorting Java

I have this assignment where I need to implement a topological sorting algorithm but I can't seem to make it work. I am not using linked lists as it is outside the scope of the course I'm taking. the algorithm I'm supposed to use is found in the code itself (as a comment) https://code.sololearn.com/cQmC4u4tP85P/#java

29th Apr 2022, 10:30 AM
Ishaq Za'rour
4 ответов
+ 2
It would help the debugging process if you provided input that shows the wrong operation. I was looking at it but do not have the time to do a thorough investigation of the code itself.
29th Apr 2022, 4:49 PM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 1
Ani Jona 🕊 I am sorry for the late reply but my problem have been solved I just had a logical error Realised my mistake when I was giving more details on the code on another website yet again, I am sorry for wasting your time ^^; but thank you for considering to answer!
30th Apr 2022, 7:16 AM
Ishaq Za'rour
+ 1
No problem :) Glad it is solved :)
30th Apr 2022, 7:17 AM
Ani Jona 🕊
Ani Jona 🕊 - avatar
0
Quick note: this question is also posted on https://coderanch.com/t/751286/java/Topological-sorting-algorithm this link
29th Apr 2022, 4:46 PM
Ishaq Za'rour