Flipkart Interview Question for Software Engineer in Tests






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

yes, stack is the one to use so that you can pop the stack if you encounter a ".." and ignore the element "." without pushing it onto the stack.

- sarmakdvsr July 25, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

can u make the question more claerer as if its only char then u can use simple array or stack or queue... it depends wt functionality u wanna add.

- tosha April 22, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

looks like he is implementing ls in linux,
stack may be useful,
ls a/b/c/./e/../f/./../g/./../h
ls a/b/c/h

- sajith May 31, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

is the question is => how do you store folder hierarchy.
answer => we can use tree kind of data structure. where each node will have pointers to child nodes, pointer to parent, leaf can indicate a file.

- Anonymous May 05, 2012 | 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