Tip 1 : Practice DSA and give contests regularly.
Tip 2 : Try to participate in Competitive Programming contests.
Tip 3 : Revise core subjects like OOPS, DBMS, OS, CN thoroughly.
Tip 1 : Add your genuine projects and limit them to 3-4.
Tip 2 : Try to keep it simple and proofread your resume for any spelling or indentation mistakes.



Let’s say the array ‘A’ = [1, 2, 3, 4, 5], then after merging indexes 2 and 3, the array ‘A’ will look like [1, 5, 4, 5].
It was an easy question, but the only catch was that they expected the output only in the format that was provided.
We could just create a helper function where we get the start and end index, and we expand on both sides by decreasing the start and increasing the end till both sides have the same characters.
And in the main function, we can iterate over the string and call our function for each index twice, once for odd length, and once for even length.



The problem is quite simple, there is just one observation we need to make, that the answer will always be the Yth number from starting in the sorted version of array A.
First interview round. Apart from the one coding question I was also asked questions from OOPS, and Operating Systems.



For a (6 x 6) board, the numbers are written as follows:

You start from square 1 of the board (which is always in the last row and first column). On each square say 'X', you can throw a dice which can have six outcomes and you have total control over the outcome of dice throw and you want to find out the minimum number of throws required to reach the last cell.
Some of the squares contain Snakes and Ladders, and these are possibilities of a throw at square 'X':
You choose a destination square 'S' with number 'X+1', 'X+2', 'X+3', 'X+4', 'X+5', or 'X+6', provided this number is <= N*N.
If 'S' has a snake or ladder, you move to the destination of that snake or ladder. Otherwise, you move to S.
A board square on row 'i' and column 'j' has a "Snake or Ladder" if board[i][j] != -1. The destination of that snake or ladder is board[i][j].
You can only take a snake or ladder at most once per move: if the destination to a snake or ladder is the start of another snake or ladder, you do not continue moving - you have to ignore the snake or ladder present on that square.
For example, if the board is:
-1 1 -1
-1 -1 9
-1 4 -1
Let's say on the first move your destination square is 2 [at row 2, column 1], then you finish your first move at 4 [at row 1, column 2] because you do not continue moving to 9 [at row 0, column 0] by taking the ladder from 4.
A square can also have a Snake or Ladder which will end at the same cell.
For example, if the board is:
-1 3 -1
-1 5 -1
-1 -1 9
Here we can see Snake/Ladder on square 5 [at row 1, column 1] will end on the same square 5.
I have implement the functionality for the Snake and Ladder game, create the required classes and function (like, roll the dice, move player, handle snakes, handle ladders)
It was the second round. Apart from one DSA and SQL question, I was also asked questions from my projects, previous internship, and CS fundamental questions also.



1. Both STR and PTR consist of English uppercase letters.
2. Length of string 'STR' will always be greater than or equal to the length of string ‘PTR’.
3. In case, there is no anagram substring, then return an empty sequence.
4. In case of more than one anagrams, return the indices in increasing order.
We can store the frequency of each character present in the string, and check if all characters have even frequency, apart from one character which can have odd frequency (for palindrome of odd length).
Given two tables Customer and product, get the customer name, and product name order by first name
Tip 1 : Use Left Join for getting the particular records
Tip 2 : Use order by, for properly sorting the records.
SELECT Product.product_name, Customer.firstname, Customer.lastname
FROM Orders INNER JOIN
Customers
ON Product.id_customer=Customer.id
ORDER BY Customer.firstname;It was the third interview round and an HR round.
Tell me about yourself.
Why do you want to join Western Digital?
Tell me your weaknesses and strengths.

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