Algorithm Design Engineer Interview Questions

983 algorithm design engineer interview questions shared by candidates

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.
avatar

AI Algorithm Engineer

Interviewed at Huawei Technologies

3.4
Nov 25, 2019

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.

Viewing 101 - 110 interview questions

Glassdoor has 983 interview questions and reports from Algorithm design engineer interviews. Prepare for your interview. Get hired. Love your job.