Member Technical Staff Interview Questions

17,419 member technical staff interview questions shared by candidates

Telephonic Interview : Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same. If possible, output any possible result. If not possible, return the empty string. Example 1: Input: S = "aab" Output: "aba" Example 2: Input: S = "aaab" Output: "" Note: S will consist of lowercase letters and have length in range [1, 500].
avatar

Senior Member of Technical Staff

Interviewed at Salesforce

4
May 27, 2020

Telephonic Interview : Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same. If possible, output any possible result. If not possible, return the empty string. Example 1: Input: S = "aab" Output: "aba" Example 2: Input: S = "aaab" Output: "" Note: S will consist of lowercase letters and have length in range [1, 500].

Viewing 3881 - 3890 interview questions

Glassdoor has 17,419 interview questions and reports from Member technical staff interviews. Prepare for your interview. Get hired. Love your job.