#Logical

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

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

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

    Thanks, great explanation. Keep it up the good work

  •  Год назад

    This is one of the best logic. Have never seen in any site.

  • @tushardeurmalle5722
    @tushardeurmalle5722 Год назад +1

    Thanks Its very nice logic to find out duplicate cout

  • @digitallearning-29
    @digitallearning-29 Год назад

    Thanks a lot sir, and wish you all the very best.

  • @sayedfurqan5102
    @sayedfurqan5102 4 месяца назад

    well explained bro.. Great

  • @marotipanchal2880
    @marotipanchal2880 Год назад +3

    you can also use trim() method instead of replace

  •  Год назад +1

    if(count>1) {
    map.put(arr[i], count);
    }
    If you apply this logic then we will get only duplicate characters count.

  • @soorajnair3499
    @soorajnair3499 9 месяцев назад

    Thank You sir great explaination

  • @omkar5577
    @omkar5577 2 года назад

    The best Explanation I've ever seen..Thanks alot..❤❤

  • @dibyashreedash4183
    @dibyashreedash4183 3 года назад +2

    Sir you are the best teacher in my life i never see this type of explanation in coding ❤️ thankew so much sir 🙏🙏

  • @pranav2003
    @pranav2003 Год назад

  • @kiransingh8239
    @kiransingh8239 2 года назад

    Best implementation,thanks a lot

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

    you can solve with string not required to convert into array

  • @mohammadsalma9996
    @mohammadsalma9996 3 года назад

    Super explanation sir do more videos on java developer

  • @venkatakrishna4942
    @venkatakrishna4942 2 года назад

    Thank you so much sir

  • @pradnyagawai1634
    @pradnyagawai1634 3 года назад

    and please make videos on collection interfaces and classes

  • @ateeqhalikhan4012
    @ateeqhalikhan4012 2 года назад

    thanks alot..

  • @raviambadagatti5088
    @raviambadagatti5088 2 года назад

    Hi Sir Very informative session , in above how it is printing the unique character because it may print like a=4 a=4 a=4 a=4 because arr[i] is traversing from 0 index to length

    • @prohealthtricks7874
      @prohealthtricks7874 2 года назад

      Find recurrence of text ab means how to find s = " abababaabababaaa"

  • @pradnyagawai1634
    @pradnyagawai1634 3 года назад

    can you explain the same question without having 2 for loop so that time complexity will reduce .

  • @kingsite8328
    @kingsite8328 3 года назад +1

    Getting error in
    Map map = new TreeMap()
    Error: Character cannot resolved to a type

    • @WriteCodeWithPrince
      @WriteCodeWithPrince  3 года назад +3

      import java.util.*;
      class TestMap
      {
      public static void main(String[] args)
      {

      Map map = new TreeMap();
      map.put('c',10);
      System.out.println(map.get('c'));
      }
      }
      please write proper way. import

  • @gauravpatil6364
    @gauravpatil6364 2 года назад

    Sir why your use for loop inside another for loop ,or anyone can explain this pls if possible....?

  • @joyal7701
    @joyal7701 3 года назад

    why treemap is used?

  • @rahulwani989
    @rahulwani989 2 года назад

    Array index outof bound exception it's showing

    • @WriteCodeWithPrince
      @WriteCodeWithPrince  2 года назад

      Please write code probably. It's will not give exception or error

  • @sachitabala
    @sachitabala Год назад

    Very easy to understand. Thanks much