Tip 1: Don’t memorize the solution; instead, focus on finding the pattern.
Tip 2: Don’t hesitate during the interview.
Tip 3: Always start with the brute-force approach in the interview.
Tip 1: Show your projects.
Tip 2: Don’t mention anything you don’t know.
It was a one-hour round that contained only DSA questions.



If the given string is: STR = "abcde". You have to print the string "edcba".
Try to solve the problem in O(1) space complexity.
Easy problem. We can directly reverse the string using a loop or built-in functions.
Time complexity: O(N)
Online coding round on the HackerRank platform.



In zigzag order, level 1 is printed from left to right fashion, level 2 is printed from right to left. and level 3 is printed from left to right again, and so on…..
For the given binary tree

The zigzag traversal is [1, 4, 3, 5, 2, 7, 6]
First, I started with an approach like using BFS to solve the problem. But then he asked how I could print it in spiral form.
So, I thought of using a flag to reverse the order of nodes at alternate levels.
He agreed with the approach, and then I coded the solution.
In the end, we discussed the time complexity, which is O(N).
It was a 1-hour round with only DSA questions.


The length of the list is 4. Hence we return 4.
Exercise caution when dealing with edge cases, such as when the head is NULL. Failing to handle these edge cases appropriately may result in a runtime error in your code.
I started with an approach where I run a loop and check if a node's value is odd; if it is, I increment the count.
The interviewer was okay with the approach, so I started writing the code, and it worked as expected.
In the end, we discussed the time complexity. It was at most O(N) if all the node values are odd.
It was a normal round where she asked me about my internship experience, projects, and some basic questions about MySQL.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?