Group Shifted Strings | Hashmap Interview Questions Playlist

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 17

  • @nandanimadhukar
    @nandanimadhukar 2 роки тому +1

    I was stuck at this question for so long and this solution made me love the question

  • @singhalvikash
    @singhalvikash 3 роки тому +1

    Your explanation is one of the best on youtube on these subjects. Keep up the great work !

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      Glad to know that you liked the content and thank you for appreciating.
      The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
      So, keep motivating, keep learning and keep loving Pepcoding😊

  • @bhushankhope8949
    @bhushankhope8949 10 місяців тому

    Nice explanation, Thank you.

  • @shree6665
    @shree6665 3 роки тому

    the best explanation to question and solution both, understood thoroughly, thanks a lot, keep doing great work (Y)

  • @sachinpissay
    @sachinpissay 3 роки тому

    else part me I think phri se list ko map me put karna padega
    eg:
    else {
    List list = map.get(key);
    list.add(str);
    map.put(key, list);
    }

  • @mrprime557
    @mrprime557 2 роки тому

    Great explanation ! Please confirm if the time and space complexity are O(n^2) and O(n) respectively. Thank you :)

    • @Pepcoding
      @Pepcoding  2 роки тому

      Hope you love the explanation. For better experience and well-organised content Visit- nados.pepcoding.com
      You can post your query on community tab.
      Don't forget to follow us on Instagram
      instagram.com/pepcoding/

  • @mukultaneja7243
    @mukultaneja7243 3 роки тому

    Sir, I am unable to understand the Sorting done in the ArrayList in such questions. I tried similar sorting in C++, but the some test cases are still not passing. Please tell what should I do ??

  • @444not
    @444not 3 роки тому

    You are a rockstar !

  • @mayur_madhwani03
    @mayur_madhwani03 2 роки тому

    I took every string sorted it and made it as key
    so the map was
    map m;

    • @Pepcoding
      @Pepcoding  2 роки тому

      Good, for better experience and well organised content sign up on nados.io and keep learning.

  • @krantisambhav1471
    @krantisambhav1471 2 місяці тому

    Wow

  • @ucguy4u
    @ucguy4u 3 роки тому

    No need for else part, more concise for loop:
    for (String str : strings) {
    String key = getKey(str);
    if (!hm.containsKey(key)) {
    ArrayList list = new ArrayList();
    list.add(str);
    hm.put(getKey(str), list);
    }
    hm.get(key).add(str);
    }

  • @youryuvv
    @youryuvv 4 роки тому

    sir ye playlist kb tk complete ho jayegi...

  • @amitupadhyay6511
    @amitupadhyay6511 2 роки тому

    IF THE NUMBER IS LESS THAN 0, ADD 26 TO IT. THATS THE MAIN HINT