Tip 1 : Solve questions on various topics from leetcode, gfg
Tip 2 : make at least 2 good projects based on any tech stack
Tip 1 : Try to make your resume closest to the job you wish to apply for (i.e., mention relevant skills)
Tip 2 : Be thorough with the projects and tech stack you mention in your resume



1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
step 1 : took a queue and stores positions of all rotten oranges along with time 0
step 2 : pop elements from queue one by one and push positions of all good oranges in contact with current postion and increase time +1
step 3 : repeat above step until the queue is empty



For N = 3 one valid array is [3,1,2,1,3,2].
step 1 : after few hints I gave an approach using hashmap, i stored all the possible pairs of random numbers (1,1), (1,2)....(n,n) in a map.
step 2 : I was asked to optimise the above approach
step 3 : I was able to come up with a mathematical formula to compute random number in O(1) time complexity

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the index number of the last element of an array with 9 elements?
This Comment was removed by the moderator
This comment won't show up to you, as it was removed by moderator due to inappropriate content.