Want a Free Job Posting?

Buy a job posting today and the second one is on us. For a limited time only. Act Now.

Interview Question

Interview Mountain View, CA

A File System with directories at many levels. A duplicate

  of a file will have the same file name. We can treat the first instance encountered as a master copy, all others are duplicates. Write a program to remove the subsequent copies of the file and create symbolic links to the first copy encountered (the master copy).

Interview Answer

1 Answer


I tried using bash to solve this one. It is possible to solve it using bash. However bash lacks data structures support so it's gonna be a bit challenging. A better option would be to use Python or Perl if you can program in those languages.

Interview Candidate on Mar 17, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.