Symphony Services Interview Question for Production Engineers


Country: India
Interview Type: In-Person




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

Tortoise and Hare algorithm

- lklein September 16, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If link of any node is same as node of any previous or first node, it becomes a loop.

- Manish Singh September 24, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If you not able to detect the start and end of the circular linked list in a traversal, it will result in looping.

To avoid this detect the start and the end of the linked list. It can be done by,

Way -1
Have an temp variable pointing to your starting location. So when you iterate everytime check for the equality.

Way -2
Have two temp pointers. Pointers moves one location for every iteration and pointer b moves two locations for one iteration. The point where and b meets together is end of the linked list.

Note : Pointer B will have to be iterated twice.

- sureendarraju October 04, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I have a doubt if cyclic linked list is a special case of loop in linked list?
Or, the meaning of loop in a linked list is that the loop should be in between the list without forming a cyclic linked list out of it.
Please clarify.

- ashish January 25, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Traverse linked list using two pointers. Move one pointer by one and other pointer by two. If these pointers meet at some node then there is a loop. If pointers do not meet then linked list doesn’t have loop.

- BJ September 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

<h1>hackr</h1><p>you are hacked you ass</p>

- Anonymous April 02, 2020 | 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