Expedia Interview Question for Software Engineer / Developers






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

hash the url

- Anonymous June 27, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Mark the visited urls. Like what you would do in DFS BFS etc.

And interesting variant of the problem would be this.
Say you have a series of directed edges coming up (online algo) and you need essentially construct the corresponding graph. The only condition is that you ignore the any edge which may result in a cycle. How would you do it.

Clue: Transitive closure.

- knap April 29, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

A->B->C
A->D->C
There's no loop, but your algo won't work.
Actually, there's a loop if only you meet a node which is currently on the working stack.

- Anonymous October 02, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

"A->B->C
A->D->C
There's no loop, but your algo won't work."

In the second path (A-D-C), you wouldn't even want to go to C as it's already been visited. It's a web crawler; so by marking C as visited (during the first path), you are not only preventing loops, but ALSO preventing pages from being accessed a redundant number of times.

- anon2 December 22, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

juicer.headrun.com
visit the above sites for more detailed info about design a web crawler

- juicerheadrun November 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

visit the above sites for more detailed info about design a web crawler

- juicerheadrun November 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@Anonymous
"A->B->C
A->D->C
There's no loop, but your algo won't work."

In the second path (A-D-C), you wouldn't even want to go to C as it's already been visited. It's a web crawler; so by marking C as visited (during the first path), you are not only preventing loops, but ALSO preventing pages from being accessed a redundant number of times.

- anon2 December 22, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Mark the visited urls. Like what you would do in DFS BFS etc.

And interesting variant of the problem would be this.
Say you have a series of directed edges coming up (online algo) and you need essentially construct the corresponding graph. The only condition is that you ignore the any edge which may result in a cycle. How would you do it.

Clue: Transitive closure.

- knap April 29, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Mark the visited urls. Like what you would do in DFS BFS etc.

And interesting variant of the problem would be this.
Say you have a series of directed edges coming up (online algo) and you need essentially construct the corresponding graph. The only condition is that you ignore the any edge which may result in a cycle. How would you do it.

Clue: Transitive closure.

- knap April 29, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

I apologize for several posts..each submit kept throwing errors and me got confused.

- knap April 29, 2009 | 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