You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#We have to find the components that are sequentially connected for eg LL=[0,1,2,3,4,5,6] and G=[0,1,2,3,5,6] then there 2 connected components [0,1,2,3] and [5,6]. [4] is not considered as it is not present in G. so the output is 2