Created
October 23, 2022 09:12
-
-
Save NhanKhangg98/cd14dd45fe0df8104156d3677fb9a133 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function checkIfPangram(sentence: string): boolean { | |
| let seen = new Set() | |
| for(let i=0;i<sentence.length;i++){ | |
| seen.add(sentence[i]); | |
| } | |
| if(seen.size === 26){ | |
| return true; | |
| } else { | |
| return false; | |
| } | |
| }; |
QuocCao-dev
commented
Oct 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment