Tip 1 : Do hands-on practice
Tip 2 : Give attention to details
Tip 3 : Start as early as possible
Tip 1: Keep it updated
Tip 2: Do not use short forms
Traverse linked list using two pointers. Move one pointer by one and the other pointers by two. When the fast pointer reaches the end slow pointer will reach the middle of the linked list.
Declare a character stack S.
Now traverse the expression string exp.
If the current character is a starting bracket (‘(‘ or ‘{‘ or ‘[‘) then push it to stack.
If the current character is a closing bracket (‘)’ or ‘}’ or ‘]’) then pop from stack and if the popped character is the matching starting bracket then fine else brackets are not balanced.
After complete traversal, if there is...
Approach: A simple method is to generate all possible triplets and compare the sum of every triplet with the given value. The following code implements this simple method using three nested loops.
Algorithm:
Given an array of length n and a sum s
Create three nested loop first loop runs from start to end (loop counter i), second loop runs from i+1 to end (loop counter j) and third loop...
Tell me about yourself.
Tell me about the projects you have done. and what difficulties you have faced in project
Tip 1: Do quality projects that reflect better on your resume
Where do you think you will be in 10 yrs.
Why do you want to join Accenture.