Pergunta de entrevista da empresa GoTo

Implement function str_replace that replaces all instances of substring to other in a passed string. In just C. On paper.

Resposta da entrevista

Sigiloso

4 de out. de 2011

interviewer did not give a clue on intended "regular use case" for the funciton to chose implementation; was even surprised that different expectations on input would lead to several different ones.