2948. Make Lexicographically Smallest Array by Swapping Elements | Sorting

Поділитися
Вставка
  • Опубліковано 3 лют 2025

КОМЕНТАРІ • 9

  • @ARYANMITTAL
    @ARYANMITTAL  10 днів тому +1

    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)

  • @bhooom2389
    @bhooom2389 10 днів тому +7

    Bro your explanations are one of the best, don't believe you have these less views, Keep going ✨

  • @AbdulAzeem-ko2uj
    @AbdulAzeem-ko2uj 10 днів тому +2

    A nice POTD!! and also a very nice explanation!!

  • @AwesomeCodings
    @AwesomeCodings 9 днів тому +1

    bro you don't have to sort sortedvals as the elements are already sorted , may not make a big difference but still......

  • @sambhavjha2307
    @sambhavjha2307 9 днів тому

    nice job bro, but i think there is no need to sort sortedVals

  • @googlewasmyidea9895
    @googlewasmyidea9895 9 днів тому

    no need to swap sortedValues with group array because the nums index pushed in group array where already sorted with values in indexed array.

  • @kbcoder3734
    @kbcoder3734 9 днів тому +1

    No need to sort the array as it will be already sorted.

  • @vibhanshusharma9143
    @vibhanshusharma9143 10 днів тому

    🤔🤔. Now it confirmed that i have less brain 😂. Not my mistake 😂