A new language has an alphabet given as an ordered list of symbols, each one or two letters long (for example [w, b, aa, c]). Write compare(alphabet, a, b) that returns -1, 0 or 1 depending on whether…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.