Title Template
Speak.com - Full-Stack Engineer - Round 1 Technical Screen
Level: Senior
Education: Bachelor’s
Years of Experience: 8
Questions Asked:
(Javascript)
Given a stream of tokens only return the tokens between the start tag and end tag.
Input: solution(response, start_tag, end_tag) {
for (token in response) {
// todo: implement logic to only yield tokens after start_tag and before end_tag
yield token
}
}
example stream: ‘T’, ‘oken’, ‘process’, ‘these’, ‘Fin’, ‘ished’
with start tag “Token” and end tag “Finished” should only yield “process”, “these”