Tip 1 : For DSA questions in interviews, start explaining from the brute force approach and then move to the optimal one. Convey your thought process to the interviewers, so that they can help you out if you get stuck. Communication skills matter a lot, and I think that is what makes the difference!
Tip 2 : Do some research about the company you are interviewing for and prepare the answers to the questions like Why should we hire you? (frame your answer in such a way that shows that your career goals align with the goals of the company), Why XYZ company?, Competitors of XYZ, etc. beforehand. Read about some latest news related to the company so that you can ask questions based upon that when the interviewer allows you to ask any question. This shows that you are genuinely interested to work for the company.
Tip 3 : Spend proper time making your resume and get it reviewed by seniors. Do not write anything that you are not confident of. Even if you write something that you don’t know, just be prepared that how you will defend it. The interviewers are much much experienced than you and they’ll catch you easily if you lie. So don’t take risks here.
Tip 1 : Try to include at least 1 development project in your resume.
Tip 2 : Do not write anything that you are not confident of. Even if you write something that you don’t know, just be prepared that how you will defend it.
There were 2 coding questions and 15 MCQs (related to OOPs, OS, DBMS, CN, DSA, and Aptitude).



1 -> The cell contains an apple that Alice can pick up and pass through it.
-1 -> The cell contains a bush and Alice can not visit this cell.
0 -> The cell is empty and Alice can pass through it.
1. After picking an apple the cell will become empty.
2. While going towards the bottom right corner, Alice can either move Right or Down at each step.
3. While going towards the top left corner, Alice can either move Left or Up at each step.
4. If there is no path from (0,0) to (‘N’-1, ‘N’-1) then Alice will not pick any apple.
If the given matrix is :
[1, 1, -1, 1]
[1, 0, 1, 1]
[1, 1, 0, 1]
[0, -1, -1, 1]
One of the possible ways to collect maximum apples is :
Path for going towards bottom right corner:
(0,0) -> (0,1) -> (1,1) -> (1,2) -> (1,3) -> (2,3) -> (3,3)
Apples collected are equal to 6.
Path for going towards top left corner:
(3,3) -> (2,3) ->(2,2) -> (2,1) -> (2,0) -> (1,0) -> (0,0)
Apples collected are equal to 3.
So Alice can collect a maximum of 9 apples.
I solved this using dynamic programming.



getSize: Returns an integer. Gets the current size of the stack
isEmpty: Returns a boolean. Gets whether the stack is empty
push: Returns nothing. Accepts an integer. Puts that integer at the top of the stack
pop: Returns nothing. Removes the top element of the stack. It does nothing if the stack is empty.
getTop: Returns an integer. Gets the top element of the stack. Returns -1 if the stack is empty
It was a technical interview round where I was asked questions based on DSA.



In the given linked list, there is a cycle, hence we return true.

I explained to him the brute force approach as well as the optimal approach, after which he asked me to write the code for the optimal approach. He asked me to write the code from scratch, so first I wrote the code to insert the nodes in the linked list and then the code to detect a loop in the linked list.



INPUT : N = 4
OUTPUT : 3
In the above example, N = 4, whose Binary representation is “0100”. It is clearly visible that the binary number contains a single set bit, at a position 3 from the LSB end. Hence the output is 3
INPUT : N = 8
OUTPUT: 4
In the above example, N = 8, whose Binary representation is “1000”. It is clearly visible that the binary number contains a single set bit, at a position 4 from the LSB end. Hence the output is 4
INPUT : N = 9
OUTPUT : -1
In the above example, N = 9, whose Binary representation is “1001”. Now, the binary number contains 2 set bits, at a position 4 and 1 from LSB end. Hence the output is -1.
INPUT : N = 0
OUTPUT : -1
In the above example, N = 0, whose Binary representation is “0000”. Now, the binary number contains no set bits at all. Hence the output will be -1.
This was quite an easy question. The interviewer asked me to write the code to check whether the kth bit of an integer is set or not, and then make some changes in that code to check whether the kth bit of an integer is unset or not.
It was a technical interview round where I was asked questions based on DSA, OS, and Networking.



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
Step 1 : I explained the brute force approach to the interviewer.
Step 2 : I optimized the previous approach using a hashtable and explained the same to the interviewer.
What is Priority Inversion?
What happens when you boot your system?
What is an IP address and how many bits are required to represent an IP address?
This was an HR round. The interviewer asked me some questions.
Finally, she asked if I had any questions for her.
Tell me about yourself.
Why do you want to join Cisco?
What are some products of Cisco that you know?
Who are the competitors of Cisco?
Then, she asked my location preference and told me about the CTC breakup.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: