Tip 1: Practice writing code without an IDE. It helps in better-memorizing syntax.
Tip 2: Merely finding an answer to a question isn't always enough; strive for optimized approaches.
Tip 3: Lastly, actual coding practice is crucial for improvement."
Tip 1: Keep it to one page.
Tip 2: Try to organize the sections in the resume. For example, highlight your industry experience if you've been working for the past 2 years, followed by your college degrees and projects. Keep only what is relevant in the resume.
It was an online round with a mix of questions. It had questions from topics DSA, OS, CN, Mental Ability, c/c++, and Python.
Given a 2d matrix of integers. The matrix contains only 1s, 2s and 0s. Each 2 represents a rotten tomato. Each rotten tomato can rot the next fresh tomato adjacent to it. 1s represents the fresh tomatoes and 0 means empty. Find out the minimum time that will be taken so all the tomatoes get rotten. Return -1 if this is not possible.
This question is very similar to the basic "Rotten Oranges: question.
I applied BFS to resolve this question.
My interview round was scheduled for around noon. I was interviewed by two individuals who were very calm and casual. Their friendly nature made me feel comfortable, and I didn't feel nervous. They gave me ample time to solve each problem.
You have got someone working for you each day and you repay them with a gold bar each day. The gold bar is segmented into 7 pieces. You must give the worker a piece of gold each day after the work is completed. What is the number of cuts that you can make to the gold bar to allow you to achieve this?
Tip 1: Try to first understand what the question means.
Tip 2: Think of ways not brute force but something out of the box that might help you achieve this task.
We are given a number and we need to return the next greater number possible from that number after reshuffling the sequence of numbers. eg. If the number is 102, what are all greater numbers possible here., 201, 210, 120. But the answer that we will choose will be 120 because it is the next greater number after 102.
This is a medium-type question. First I was confused about the understanding of the question. Then after trying out the few questions and examples as stated by interviewers, I understood I needed to do some reshuffling of the number such that among all the greater numbers I got I needed to get the smallest among them.
Then after trying out a few examples, I found that If I try to put the largest number on the leftmost side it will give me a greater number but I cannot guarantee it is the next greatest only. So it was clear I only needed to change from the rightmost position. Then I started experimenting with the rightmost digit and thought about where should I place it so I get a greater number. The answer was easy from here, if I replace it with the closest smaller digit I will get the next greater number.
Finally, by doing such kind of deductions, I concluded and started drafting the solution.
I did not clear this round because my code did not pass all the test cases. It missed on corner condition.
There is an extra sorting step that we also need to perform once we do the switching of the letters.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL keyword removes duplicate records from a result set?