LogMeIn Interview Question: Implement function str_replac... | Glassdoor

Interview Question

Lead C++ Engineer Interview Budapest (Hungary)

Implement function str_replace that replaces all instances

  of substring to other in a passed string. In just C. On paper.

Interview Answer

1 Answer


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.

Interview Candidate on Oct 4, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.