## 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

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.

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.

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.

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.

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

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

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.

### 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.