Snapsheet interview question

Find the most frequent character within a string.

Interview Answer

Anonymous

17 June 2021

Create an array that can store every ASCII character, increment that element when the character appears, then find the maximum in that array after.