Missing Letters

Published by Deep Xavier in

Given a string containing unique letters, return a sorted string with the letters that don't appear in the string.

Examples

getMissing("abcdefgpqrstuvwxyz") ➞ "hijklmno"

getMissing("zyxwvutsrq") ➞ "abcdefghijklmnop"

getMissing("abc") ➞ "defghijklmnopqrstuvwxyz"

getMissing("abcdefghijklmnopqrstuvwxyz") ➞ ""

Notes

  • The combination of both strings should be 26 elements long, including all the letters in the alphabet.
  • Letters will be all in lowercase.
Watch a quick demo on how Edabit works.