This is the solution for LeetCode - 685 Redundant Connection II
This problem seem to be highly convoluted one personally I don't ask or encourage to solve such problems in or for interviews cause interviews are time based and its a waste of time to judge someone when the questions and answers are not very convincing.
ProblemLink is: https://leetcode.com/problems/redundant-connection-ii
My submission: https://github.com/interviewdose/id/blob/master/redundant-connection-ii/Solution.java
Please watch the solution for 684: https://youtu.be/MdI6sXCAiso
first before watching this which will help you understand this solution easily.
#leetcode #graph #interviewdose
Download
0 formats
No download links available.
LeetCode 685 - Redundant Connection II - Leetcode Hard problem directed graph | NatokHD