Group Anagrams (LeetCode 49) | Neetcode 4/ 150 | Bharath Chandra (తెలుగు)

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 23

  • @shaikhanuman8012
    @shaikhanuman8012 Месяц назад

    Good Explanation on "Anagram problems".
    I solved the question with the help of your previous video lecture using javascript. TQ very much Bharath.
    function groupAnagrams(arr) {
    let result = arr.reduce((acc, item) => {
    const sortItem = item.split('').sort().join('')
    if(acc[sortItem]) {
    acc[sortItem].push(item)
    } else {
    acc[sortItem] = [item]
    }
    return acc
    }, {})
    return Object.values(result)
    }

  • @DEADPOOL-pi5wn
    @DEADPOOL-pi5wn 2 месяца назад

    thank you for the video😃

  • @DivaGameDeveloper
    @DivaGameDeveloper 3 месяца назад +1

    Hey bro as u said before seeing the video I actually tried to solve it and made it in the first attempt ❤

  • @Manjith-1887
    @Manjith-1887 3 месяца назад +1

    Time Complexcity and Space Complexcity Video (Most Asked Video /Most Waiting Video)

    • @bharathh_chandraa
      @bharathh_chandraa  3 месяца назад +2

      Repu podunna meeru leche kalla video upload ayyi untadhi Manjith!

    • @lokesh0000
      @lokesh0000 3 месяца назад

      ​@@bharathh_chandraa master theorm kuda cheppu bro.

  • @kushalmuddana3480
    @kushalmuddana3480 2 месяца назад

    Thanks for this wonderful video bro👌👌👌

  • @anilkumarreddy3524
    @anilkumarreddy3524 3 месяца назад

    Anna 3rd approach explain cheyaledu anna by using count arrays

    • @bharathh_chandraa
      @bharathh_chandraa  3 месяца назад +1

      Yeah anil, konchem over the top velpotundi ani avoid chesa. Sorting solution is good enough but if you learnt the other approach too, amazing!

  • @SAIHARSHAP
    @SAIHARSHAP 3 месяца назад +1

    bro i completed dsa within 9 months bro
    leetcode -820 problems
    gfg-700 problems
    codeforces-80 problems
    gfg-4 star
    leetcode-1577 rating
    and i am starting web devlopment bro.Give me guidance bro.
    i am from iiit sricity,presently second year now.
    bro dsa,web tarvata ml,ai,datascience,cyber security nerchukovala,leda aa rendu saripotaya

  • @krishk3104
    @krishk3104 2 месяца назад

    Anna ila sort chese technique ni valid anagram or not ah question lo enduku use cheyyaledu ala cheste emanna time complexity peruguthunda

    • @bharathh_chandraa
      @bharathh_chandraa  2 месяца назад

      Sort chese technique kooda manam valid anagram question lo discuss chesam krish, Sorting approach Time complexity - O(nlogn). Adhe Hashing vaadithe O(n) lo aipothadi.
      Space complexity maatram Sorting approach lo takkuva untadi O(1). Adhe hashing approach lo O(N) untadi. So interviewer adigina daani batti approach suggest cheyali

    • @krishk3104
      @krishk3104 2 месяца назад

      @@bharathh_chandraa ok thank you anna

  • @vaneetha_here_navaneetha
    @vaneetha_here_navaneetha 2 месяца назад

    sort chesthey anagrams same vuntai that is common property

    • @bharathh_chandraa
      @bharathh_chandraa  2 месяца назад +1

      Perfect!

    • @vaneetha_here_navaneetha
      @vaneetha_here_navaneetha 2 месяца назад

      @@bharathh_chandraa thank you anna
      Meku okkati chepali me videos lo question chestharu kadha appudu one two repeat chesinappudu same question
      Edhi video kadhu live lo interact avuthu question ki answer cheyami adiginatlu anipisthundhi
      Maintain that anna
      Me videos ki vere channel videos ki chala difference vundachu but ee different vallana students bhaga attract avutharu like me

  • @SaiBharath_Kanasani12
    @SaiBharath_Kanasani12 3 месяца назад

    Hai bro, nak question chusaka ela solve cheyalo idea vastundi kani code rasi ela implement cheyalo ravadam ledhu. Dani ela develope chesukovalo koda cheppandi bro. By the way meru baga explain chestunaru nak coding meda intrest perugutuni. Thanks for sharing your knowledge!

    • @bharathh_chandraa
      @bharathh_chandraa  3 месяца назад

      Hey Bharath, idea and algorithm vachina code cheyalekapotunnam ante 2 problems undi undochu
      1) Syntax and basics correct ga raakapovadam. Ee case lo Jenny lectures nunchi kaani w3schools nunchi kaani concepts anni okasaari revise cheskovaali.
      2) Basics correct ga undi kooda logic nunchi code ki convert kaavatledu ante nuvvu order lo solve cheyatledu problems ani. Try to solve problems in order
      Edhi emaina practice is the key. Practice chesthu unte code cheyadam easy avtadi. Keep following the series ending kalla theda neeke telustadi

  • @maheswara_pradeep8235
    @maheswara_pradeep8235 3 месяца назад

    6:23 😂😂😂. Btw video super bro.
    Oka request anna. Meeru okavela time complexity video chedham anukunte recursion ki kuda Ela calculation chestharu cheppandi please.

    • @bharathh_chandraa
      @bharathh_chandraa  3 месяца назад

      Okate video lo cover chesthe too much to take aipothadi Pradeep. Trees topic ochelopala or manam problems lo vaadelopala seperate ga aina cover chedham!!

    • @maheswara_pradeep8235
      @maheswara_pradeep8235 3 месяца назад

      @@bharathh_chandraa aye aye captain 🙋‍♂️