Nimbula

nimbula.com
Profile Unclaimed

Interview Question

Senior Software Engineer 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).
Answer

Interview Answer

1 Answer

0

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.