Created
September 3, 2023 11:07
-
-
Save ChousinRahit/a0a6490c3ffc0c4d27eb455a521417c4 to your computer and use it in GitHub Desktop.
This file contains 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
// From A to Z | |
// Given a string indicating a range of letters, return a string which includes all the letters in that range, | |
// including the last letter.Note that if the range is given in capital letters, return the string in capitals also! | |
// Examples | |
// gimmeTheLetters("a-z") ➞ "abcdefghijklmnopqrstuvwxyz" | |
// gimmeTheLetters("h-o") ➞ "hijklmno" | |
// gimmeTheLetters("Q-Z") ➞ "QRSTUVWXYZ" | |
// gimmeTheLetters("J-J") ➞ "J" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment