This type of content is rare......creator generally make videos on repetitive topics which can be found in n number of different videos.....but the ideas that you solve are complex and you make them easy to understand at the same time. Your channel is a gem for cp content.
Should we have to use graph? I mean I have solution for the first 2 problems in this video without any graph concept. The idea is pretty simple. I check for the elements of a and b which are not at right place. I check whether that right place is at before or after the current place. If before then I increment one variable 'pos' else i increment one variable 'neg'. Thus I get the no min no. of swaps is the max of pos and neg.
On the way of becoming the Errichto of India!
This type of content is rare......creator generally make videos on repetitive topics which can be found in n number of different videos.....but the ideas that you solve are complex and you make them easy to understand at the same time. Your channel is a gem for cp content.
Please continue this greedy series
Triology Innovations OA 2023 question - change permutation
I think this question came in ICPC 2022 amritapuri preliminary round
Mai ek aisa question abhi dekha tha sayad. Ek permuatation ko dusre mai convert covert karma tha. Min number of swaps pucha tha
Great content as always Vivek ! Please keep them coming
Another much similar thing uses this idea is min adjacent swaps needed.
number of inversion in corrected in array according to second one as sorted
great content sir
Love your content as always ❤❤
Should we have to use graph? I mean I have solution for the first 2 problems in this video without any graph concept.
The idea is pretty simple. I check for the elements of a and b which are not at right place. I check whether that right place is at before or after the current place. If before then I increment one variable 'pos' else i increment one variable 'neg'. Thus I get the no min no. of swaps is the max of pos and neg.
no no… we can do it without graph too… just to have one concept that can solve it all.
Nice concept ❤❤❤
where is episode 2 ?
i had to make it private as there was some issue with the audio. will rerecord it 🥲
Where is episode 2? I can't find it!
i had to make it private as there was some issue with the audio. will rerecord it 🥲
Why ep2 not showing?
i had to make it private as there was some issue with the audio. will rerecord it 🥲
@@vivekgupta3484 thank u