Tip 1 : Do mock interviews. With your friends, mentors, or even in front f the mirror. Questions you are sure of may suddenly have you at a loss during the actual interview.
Tip 2 : Practice all the basic programming algorithms and repeated questions. Coding Ninja's courses is a good place to start.
Tip 3 : Practice solving programs in a limited timeframe. You get only 45 minutes in the interview!
Tip 1 : Tailor your resume according to the job description. Ensure your skills matches those required, and your projects are on the same topic.
Tip 2 : Google also gives an option of cover letter. Use it! Make it personal, interesting and witty.
Timing : Evening
Online : No webcam proctoring
1) A subarray is a part of the array which is contiguous (i.e. elements in the original array occupy consecutive positions) and inherently maintains the order of elements. For example, the subarrays of the array {1, 2, 3} are {1}, {1, 2}, {1, 2, 3}, {2}, {2, 3}, and {3}.
2) Bitwise OR operation takes two numbers and performs OR operation on every bit of those two numbers. For example, consider two numbers 2 and 3 their bitwise OR will be 3. Because the binary representation of 2 is 10 and the binary representation of 3 is 11. And OR of 10 and 11 will be 11 which evaluates to 3.
3) The array may contain duplicate elements.
I maintained two arrays one with normal addition of element (0 query) and other of Xor elements (1 query) when it’s 0 ,I iterate the pointer of index of both arrays and add element to normal array, when it’s 1 I only updated xor array with xor of query element and the number already present in the xor array. At the end I did suffix of Xor array and xored the suffixes with normal array.
Then sorted and returned normal array.
Can you solve each query in O(logN) ?
2 rounds of interview of 45 minutes each
Was scheduled late at night: 9 pm(Interviewers were from USA)
Through Google meet and google online code platform
One interviewer per session
Words are separated by one or more whitespace characters.
For the given string “Madam oyo cat”, “Madam”, and “oyo” are the palindrome words
It is possible for Mr. X to rob the same amount of money by looting two different sets of houses. Just print the maximum possible robbed amount, irrespective of sets of houses robbed.
(i) Given the input array arr[] = {2, 3, 2} the output will be 3 because Mr X cannot rob house 1 (money = 2) and then rob house 3 (money = 2), because they are adjacent houses. So, he’ll rob only house 2 (money = 3)
(ii) Given the input array arr[] = {1, 2, 3, 1} the output will be 4 because Mr X rob house 1 (money = 1) and then rob house 3 (money = 3).
(iii) Given the input array arr[] = {0} the output will be 0 because Mr. X has got nothing to rob.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which operator is used for exponentiation in Python?