2559. Count Vowel Strings in Ranges | leetcode daily challenge | dsa | shashcode | java

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

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

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  2 дня назад +3

    like target is 150, Please do like if you have understood the explanation as well as the code😄😄

  • @VaibhavSingh_code
    @VaibhavSingh_code День назад +1

    bhaiya aaj ki video kab aa rahi hai

  • @suryanshukumar6945
    @suryanshukumar6945 2 дня назад

    sir hairstyle mast lag raha he. Jay jagannath🙏.

  • @arvindarora285
    @arvindarora285 2 дня назад

    nice

  • @kamleshmanibhairam507
    @kamleshmanibhairam507 2 дня назад

    Sir You are the person that's why I am ready to fight with POTD 🙂🙂🙂
    love you sir

  • @opkrchauhan_1
    @opkrchauhan_1 2 дня назад

    class Solution {
    public int[] vowelStrings(String[] words, int[][] queries) {
    int n = queries.length;
    Listres = new ArrayList();
    for(int i=0;i

  • @karthik-varma-1579
    @karthik-varma-1579 2 дня назад

    Shash we do support you and can you please from today make sure to keep potds and all approaches and the concepts😅

  • @GautamParmar-ug9ld
    @GautamParmar-ug9ld 2 дня назад

    Bhaiya Leetcode contest pr bhi solution explanation video banao please

  • @nishantrathore5031
    @nishantrathore5031 2 дня назад

    class Solution {
    public int[] vowelStrings(String[] words, int[][] queries) {
    int n = words.length;
    int [] prefix = new int[n];
    prefix[0] = isVowel(words[0]);
    for(int i=1;i

  • @kamleshmanibhairam507
    @kamleshmanibhairam507 2 дня назад

    This is my solution I have alredy solved the question and come for the new Idea
    class Solution {
    public int[] vowelStrings(String[] words, int[][] queries) {
    int [] prefWords = new int[words.length];
    int [] resQueries = new int[queries.length];
    // for storing the valid vowelStrings prefix sum.
    if(isValid(words[0])) prefWords[0] += 1;
    for(int i=1; i

  • @Harsh-jc2bz
    @Harsh-jc2bz 2 дня назад

    i did this like this..similar like u it was 30% faster ......but why its slow? TC toh kaam hai
    class Solution {
    // using prefix sum approach
    public int[] vowelStrings(String[] words, int[][] queries) {
    Set set=new HashSet();
    set.add('a');
    set.add('e');
    set.add('i');
    set.add('o');
    set.add('u');
    int freq[]=new int[words.length+1]; // will store prefix (index will be +1)

    for(int i=0;i