Tip 1 : Practice regularly on coding ninjas.
Tip 2 : Solve all the important coding questions.
Tip 3 : Participate in coding contest.
Tip 1 : Try to keep only those things in resume on which you have very good command and you should be able to answer all of the questions( upto moderate level) related to your technical skills
Tip 2 : Mention your projects with brief description, try avoiding very high level description because some times reader might not be able to understand your work, keep it descriptive and understandable
This round was carried out on Amcat. It was very user friendly platform and easily understandable. Countdown Timer was located at the top right corner that helped me to keep a check on the remaining time and I planned my answers and code accordingly.
N=3
We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
This was carried out on skype and the questions asked were relatively difficult, I wasn't very much sure with my answers. Although, this platform is nice and it wasn't the first time, I was using skype but still the final results didn't went in my faour.
INPUT : N = 4
OUTPUT : 3
In the above example, N = 4, whose Binary representation is “0100”. It is clearly visible that the binary number contains a single set bit, at a position 3 from the LSB end. Hence the output is 3
INPUT : N = 8
OUTPUT: 4
In the above example, N = 8, whose Binary representation is “1000”. It is clearly visible that the binary number contains a single set bit, at a position 4 from the LSB end. Hence the output is 4
INPUT : N = 9
OUTPUT : -1
In the above example, N = 9, whose Binary representation is “1001”. Now, the binary number contains 2 set bits, at a position 4 and 1 from LSB end. Hence the output is -1.
INPUT : N = 0
OUTPUT : -1
In the above example, N = 0, whose Binary representation is “0000”. Now, the binary number contains no set bits at all. Hence the output will be -1.
Tell me the difference between deadlock and livelock.(Learn)
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Suppose list1 is [2, 133, 12, 12], what is max(list1) in Python?