K-ANAGRAMS | Strings | Detailed explanation with code, multiple methods with complexities! 💪🚀✌️

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

КОМЕНТАРІ • 26

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

    Mam please continue uploading video

  • @ShubhamSingh-gk8vp
    @ShubhamSingh-gk8vp 2 роки тому

    Another great video!!! lets Go!!!

  • @srishtikapoor7261
    @srishtikapoor7261 Рік тому

    Present 🙂

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

    🙋

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

    Present..Well explained!!

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

    Back with a bang! 🔥

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

    Present mam..

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

    I am having 6 years of experience in IT company...but I love your video and the way you are explaining the concept. I am one of your student and brushing up dsa knowledge...Respect for you.
    Please also suggest from where could I prepare system design interview

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

    Ma'am pls continue making the video its helping us a lot

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

    Dii you are awesome

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

    Hi Today i have started with your first video that's is binary search looking forward to it

  • @UnknownUnknown-sw4hb
    @UnknownUnknown-sw4hb 2 роки тому +1

    Hi am really learning a lot from your videos thank you so much.
    Can you please do one video for this question actually am not able to come up with a solution to this
    Given a array find partition which divides array into 2 sub arrays which have equal sum
    Ex: (1,4,2,5)
    Here 2 is partition bz it divides array into 2 parts (1,4) and (5)

  • @cut-a-lyst
    @cut-a-lyst Рік тому

    What happened, no new uploads?

  • @mohitchandola3435
    @mohitchandola3435 Рік тому

    videos kb aengi didi .....10 oct. to kb ki chli gyi hai

  • @Nishchay-kc1gb
    @Nishchay-kc1gb 2 роки тому

    I am present

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

    Thanks for motivating with your series

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

    Present mam!!

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

    Present

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

    Didi bass aap continue rakhna baaki humpe chordo

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

    if(str1.size()!=str2.size()) return false; this thing was missing 8:52

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

    Present. Tried the following and cud get all gfg testcases passed:
    class Solution {
    boolean areKAnagrams(String s1, String s2, int k) {
    if(s1.length()!=s2.length()){
    return false;
    }
    Map mapOfCharacterCounts = new HashMap();
    for(Character charctr : s1.toCharArray()){
    if(mapOfCharacterCounts.get(charctr)==null){
    mapOfCharacterCounts.put(charctr, 1);
    }
    else{
    mapOfCharacterCounts.put(charctr, mapOfCharacterCounts.get(charctr)+1);
    }
    }// end of loop on first string
    int numberOfDeviations =0;
    for(Character chrcter : s2.toCharArray()){
    if(mapOfCharacterCounts.get(chrcter)!=null){
    if(mapOfCharacterCounts.get(chrcter)==1){
    mapOfCharacterCounts.remove(chrcter);
    }
    else{
    mapOfCharacterCounts.put(chrcter, mapOfCharacterCounts.get(chrcter)-1);
    }
    }
    else{
    numberOfDeviations++;
    if(numberOfDeviations>k){
    return false;
    }
    }
    }// end of loop on second string
    if(numberOfDeviations+mapOfCharacterCounts.size()>2*k){
    return false;
    }
    return true;
    }
    }

  • @mohitchandola3435
    @mohitchandola3435 Рік тому

    video ki length badhao tabhi to smj aega aur hindi m koshish kro vdo bnane ki

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

    Just came across an Instagram video of yours. Just a question, why use this so little asf clout you've got and immediately started using it to shit on Hindu traditions???

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

    Present