Given a string a encoding key "FGAVOV", it can only be upper or lower case letters. If there are duplicates, only keep the first one. Use this key to encode another string such that A becomes F, B becomes G, C becomes A and so on. For the letter that not included in key, assume they are pended behind the last V in ascii. You should encode and decode in O(n) time.
Anonymous
This very easy to do using dict in python.
Check out your Company Bowl for anonymous work chats.