Article & Code in all languages + Company Tags - codewitharyan.com/tech-blogs/make-lexicographically-smallest-array-by-swapping-elements My Uber Interview Experience - ua-cam.com/video/VGYJIX5yl74/v-deo.html My Coinbase Interview Experience - ua-cam.com/video/IjOC18b_dCw/v-deo.html My American Express Inteview Experience - ua-cam.com/video/c3UhYefhnqk/v-deo.html My JP Morgan & Chase Interview Experience - ua-cam.com/video/-jacTpY57no/v-deo.html ..... more coming soon (along with LLD course on Second Channel)
Article & Code in all languages + Company Tags - codewitharyan.com/tech-blogs/make-lexicographically-smallest-array-by-swapping-elements
My Uber Interview Experience - ua-cam.com/video/VGYJIX5yl74/v-deo.html
My Coinbase Interview Experience - ua-cam.com/video/IjOC18b_dCw/v-deo.html
My American Express Inteview Experience - ua-cam.com/video/c3UhYefhnqk/v-deo.html
My JP Morgan & Chase Interview Experience - ua-cam.com/video/-jacTpY57no/v-deo.html
..... more coming soon (along with LLD course on Second Channel)
Bro your explanations are one of the best, don't believe you have these less views, Keep going ✨
A nice POTD!! and also a very nice explanation!!
bro you don't have to sort sortedvals as the elements are already sorted , may not make a big difference but still......
nice job bro, but i think there is no need to sort sortedVals
no need to swap sortedValues with group array because the nums index pushed in group array where already sorted with values in indexed array.
No need to sort the array as it will be already sorted.
+1
🤔🤔. Now it confirmed that i have less brain 😂. Not my mistake 😂