Domande poste durante i colloqui per Software Developer Internship

24.803 Domande di colloqui condivise dai candidati | software developer internship

Given an array of character you must delete all the characters that got repeated 3 or more times consecutively and add '0' in the end of the array for every deleted character Example: "aabbbbcdddee" -> "aacee0000000" "22221" ->"00001 " The problem must be solved in: O(1) memory O(n) time And you can't overwrite a cell in the array more than once.
avatar

Software Engineer(Internship)

Ha sostenuto un colloquio presso Bloomberg

4
22 ago 2019

Given an array of character you must delete all the characters that got repeated 3 or more times consecutively and add '0' in the end of the array for every deleted character Example: "aabbbbcdddee" -> "aacee0000000" "22221" ->"00001 " The problem must be solved in: O(1) memory O(n) time And you can't overwrite a cell in the array more than once.

Stai visualizzando 1 - 10 domande di colloquio

Su Glassdoor sono presenti 24.803 domande e rapporti relativi a colloqui per Software developer internship. Preparati al tuo prossimo colloquio. Trova il lavoro perfetto per te!