308 views
2 votes
2 votes

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I cannot understand how this portion of code working for reverse. Can somebody explain?

1 Answer

Best answer
4 votes
4 votes

1st iteration:

$2$nd iteration:

After one interation : edge between $Z$ and $X$ is reversed.

selected by

Related questions

0 votes
0 votes
1 answer
3
kickassakash asked Jul 4, 2023
398 views
I have specific doubt on this question and I’ve tried to explain that in the picture ,If anyone can explain it then it’ll be of great help. according to sachin sir th...
0 votes
0 votes
1 answer
4
Souvik33 asked Apr 2, 2023
411 views
There are Insert and Retrieve_Max operations on a set {}. for n such operations what is the time complexity of the efficient algorithm possible?$n^{2}$nlogn n logn