#Logical

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • #count character occurence
    #java
    #job
    #logical Question
    #Interview

КОМЕНТАРІ • 29

  • @dog_lover173
    @dog_lover173 15 днів тому

    Thanks, great explanation. Keep it up the good work

  • @sayedfurqan5102
    @sayedfurqan5102 22 дні тому

    well explained bro.. Great

  • @tushardeurmalle5722
    @tushardeurmalle5722 Рік тому +1

    Thanks Its very nice logic to find out duplicate cout

  •  9 місяців тому

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

  • @sachitabala
    @sachitabala 8 місяців тому

    Very easy to understand. Thanks much

  • @marotipanchal2880
    @marotipanchal2880 Рік тому +2

    you can also use trim() method instead of replace

  • @digitallearning-29
    @digitallearning-29 9 місяців тому

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

  • @soorajnair3499
    @soorajnair3499 6 місяців тому

    Thank You sir great explaination

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

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

  •  9 місяців тому +1

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

  • @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 10 місяців тому

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

    Super explanation sir do more videos on java developer

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

    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 Рік тому

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

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

    Thank you so much sir

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

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

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

    and please make videos on collection interfaces and classes

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

    thanks alot..

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

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

  • @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

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

    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

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

    Best implementation,thanks a lot