LogMeIn

  www.logmein.com
  www.logmein.com

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.
Answer

Interview Answer

1 Answer

0

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.