Tip 1 : Be good at problem solving, accuracy and speed matters.
Tip 2 : Also prepare core CS subjects, OS, OOPS, DBMS.
Tip 3 : Be thorough with your resumé.
Tip 1 : Keep at least 2 great projects on resume.
Tip 2 : Try to include only tech-related information in resumé( for SDE roles).
The test happened at 9 PM, and the duration was of 90 mins. The test was held on Codility platform.
(a, b) -> (a + b, b)
(a, b) -> (a, a + b)
For the coordinates, source point = (1, 1) and destination point = (3, 5)
The output will be true as the destination point can be reached using the following sequence of moves:
(1, 1) -> (1, 2) -> (3, 2) -> (3, 5)
'G': it means that the robot will move 1 unit in the direction it is facing.
'L': it means that the robot will move 90 degrees towards its left. For example, if the robot is facing north and it has to make an ‘L’ move, then it will start facing the west direction.
'R': it means the robot will move 90 degrees towards its right. For example, if the robot is facing north and it has to make an ‘R’ move then it will start facing the east direction.
1. Buying a stock and then selling it is called one transaction.
2. You are not allowed to do multiple transactions at the same time. This means you have to sell the stock before buying it again.
Input: ‘n’ = 7, ‘prices’ = [3, 3, 5, 0, 3, 1, 4].
Output: 6
Explanation:
The maximum profit can be earned by:
Transaction 1: Buying the stock on day 4 (price 0) and then selling it on day 5 (price 3).
Transaction 2: Buying the stock on day 6 (price 1) and then selling it on day 6 (price 4).
Total profit earned will be (3 - 0) + ( 4 - 1) = 6.
The timing for this round was around 10 AM. How to optimize website assets loading? Explain Hoisting in javascript.
Given array/list can contain duplicate elements.
(arr[i],arr[j]) and (arr[j],arr[i]) are considered same.
This was a problem solving round and consisted of puzzles and mathematical problems.
A man fell in a 50m deep well. He climbs 4 meters up and slips 3 meters down in one day. How many days would it take for him to come out of the well?
Suppose you take 5 mins to think for a coding task, another 10 mins to code where you write 100 lines of code. You take a break of 5 mins every 10 mins. How much lines of code will you have written at the end of 60mins.
There is a room with a door (closed) and three light bulbs. Outside the room, there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can’t change them. Identify each switch with its bulb. All bulbs are in working condition.
You are given Rs 100 every week. Every day you put Rs 5 in you piggy bank except on Sunday you put Rs 10. You take a bus to college, one side trip costs Rs 4, you do 2 trips a day. You have your lunch in college, at Rs 10 each day, except on Saturday, which costs Rs 25 that day. College runs from Monday to Saturday. Now you decide to buy your favourite book that costs Rs 100. How many day(s) will you not take the bus so you could buy this book and be left with Rs 3 as well.
This was more of a discussion round, where the interviewer asked me related to my internship. Situational based questions were asked related to work at AmEx.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you create a function in JavaScript?