I have a doubt [1,2,0] is a descendent of [1,0] having 1 inversion at the first index(0 indexing). But [1,2,0] has no inversion at 1st index so how are u co-relating.
Honestly , Wonderful explanation, came here with zero expectation, But Your explanation made me watch complete video, i mean the way you did dry run is just amazing
Radhe Radhe Nice solution amazing work keep it up, an advice if you can include the intuition for the problem or link to similar problem that helps building logic for this problem will be really helpful. You mentioned this is similar to some other problem at time 4:10 can you send its link?