Problem Statement

Pattern:


Solution

public boolean checkIfPangram (String sentence){
	boolean[] charPresent = new boolean[26];
 
	// mark all chars present as true
	for (char c : sentence.toCharArray()) {
		charPresent[c-'a'] = true;
	}
		
	// check if  charPresent is false
	for(boolean bool : charPresent)
		if (!bool) return false;
	
	return true;
}

Notes