Skip to content

Instantly share code, notes, and snippets.

@ChousinRahit
Created September 3, 2023 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChousinRahit/a0a6490c3ffc0c4d27eb455a521417c4 to your computer and use it in GitHub Desktop.
Save ChousinRahit/a0a6490c3ffc0c4d27eb455a521417c4 to your computer and use it in GitHub Desktop.
// 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