quick brown fox jumps over the lazy dog *pangram sentence*
@rachamallidorasrivignesh44996 ай бұрын
Thank u so much brother for excellent explanation love u brother please make more on interview questions for experienced ❤❤❤❤❤❤❤❤
@pankajkhot90832 жыл бұрын
u have to explain that s.indexof[ch]
@vinciblehooman2263 Жыл бұрын
Index of 0 is “a” , so in this case if ch < 0 (less than a) then it is false
@samruddhiychachar5913 Жыл бұрын
Indexof returns -1 if character is not present
@KurumiddeKezia2 ай бұрын
If character not present in string indexof return -1 which is
@kirangiri83943 жыл бұрын
but inside the for loop you are checking the index of all characters but if a comes at 0 position you have return the condition less than 0
@satyajitwaslive Жыл бұрын
add space in the beginning of the string
@dumbguy10733 жыл бұрын
but here s.length is 43 how is it showing true?
@gowthamreddy63833 жыл бұрын
same doubt
@gowthamreddy63833 жыл бұрын
so to solve that problem we should use replaceAll("\\s","");
@akshaykallurwar42742 жыл бұрын
if s.length() < 26 then we are returning false, so that means if its more than 26 then it will return true!! anyways , this length check is just the prior verification to confirm if all alphabets can occupy the place in given String. So minimum places required for all alphabets to fit in into a string is obviously 26, thats why this check is there!!
@thechildofprophecy91357 ай бұрын
why noy use hashset?
@subhankarkanrar94948 ай бұрын
Thank you
@yadnyeshrane74484 жыл бұрын
Can we make used of hashmap
@mishra15763 жыл бұрын
U can
@mukeshramharshyadav32553 жыл бұрын
No. Use hashset
@manimaran3926 Жыл бұрын
👏👍
@samahmahdi55118 ай бұрын
public class Panagram { public static void main(String[] args) { String str = "The quick brown fox jumps over the lazy dog"; //it is panagram (contains all characters) System.out.println(IsPanagram(str)); } private static boolean IsPanagram(String str){ if(str.length()
@aswinsamuvel274 Жыл бұрын
"jwtucoucmdfwxxqnxzkaxoglszmfrcvjoiunqqausaxxaaijyqdqgvdnqcaihwilqkpivenpnekioyqujrdrovqrlxovcucjqzjsxmllfgndfprctxvxwlzjtciqxgsxfwhmuzqvlksyuztoetyjugmswfjtawwaqmwyxmvo" this code wont pass this testcase