-What does the assignment X=(X)&(X-1) do? Use this to count number of 1s in a number.
Programmer Analyst Intern Interview Questions
719,569 programmer analyst intern interview questions shared by candidates
Accurately (this is the catch) read a 64bit register value using a method that can read only 32bit at a time
Write code to return a sorted array of int, when passed in 2 sorted array of int to the method.
See above for type of question?
Technical Manager = What are you doing? How much are you willing to contribute? etc. This is mostly behaviour round. HR = Again, straight forward questions. Technical = this round contains two coding test. You will work as a team with some other candidate on a test. Basically, you have to demonstrate your teamwork skills. Also, how well you handle the situation e.g. are you a follower or a leader etc.
You have three sock drawers. One has red and blue socks, one has blue and green socks, and one has green and red socks. What is the expected number of socks you must pull to be sure which drawer is which, assuming that the number of socks of each color in each drawer is both large and equal?
Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. All these operations of SpecialStack must be O(1). To implement SpecialStack, you should only use standard Stack data structure and no other data structure like arrays, list, etc.
Given an array, find there are 3 numbers have when we add them the value will equals a specified sum Example: {1,4,6,10,20,21} Sum=32, Result:true (1+10+21) Sum=65, Result:false
Write algorithm to compute the intersection of two arrays. What is the time complexity of this algorithm (using the big O notation)?
Given a string, find whether it has any permutation of another string. Need to be efficient
Viewing 1721 - 1730 interview questions