Interview Question

Interview Palo Alto, CA

Using PHP, how would you take a string containing the

  letters "GOOGLE" and remove the duplicate letters to output "GOGLE" (without using array_unique)?
php, big o notation

Interview Answer

1 Answer


Note: Be able to write the Big O notation for your solution, and ensure that your code is as efficient as possible.

Interview Candidate on Oct 8, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.