Amazon Interview Question for Software Development Managers


Country: India
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
5
of 5 vote

Use a hashing mechanism e.g sha-1 or MD5SUM. Dropbox do the same thing( don't know exactly which hashing algo they use but it only stores one version of file even if its uploaded by multiple users till they have same hash ).

- Cerberuz January 17, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

MD5,SHA-1 etc. hash algorithms can guarantee that the duplicate files only store one copy on cloud server. But different users have his/her own file list view, the duplicate files with different file names share the same link.

- oohtj January 20, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Assumption : Files/Folders having same name are duplicates
In the cloud server we maintain a database which contain files/folders name with their addresses , when there is a need to syn a file we first check weather it's name is resent in our database, or not, if yes then we just create a shortcut in the file's corresponding folder(in cloud server) and this shortcut point to the corresponding file which is some where in cloud server, Now when we got a folder where all it's file are shortcut, we create shortcut of that folder insteed of having a folder which contain files as shortcut, so this will helps in reduction of further space,

- sonesh January 20, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More