An integer is represented in binary as a sequence of 0's and 1's. Write a function that returns the number of 1's in the binary representation of a given integer.
Software Development Interview Questions
36,991 software development interview questions shared by candidates
1) how do find out if there is a path from root to leaf whose summation= given number?
Bar raiser Given a NumberPool containing number sequence of numbers from 1 to infinity. Implement an interface, essentially two functions- checkin(N): which adds number to the number pool and makes it available. checkout(): returns minimum number from the pool and makes it unavailable.
Describe the thread states in Java
What is the name of the Java garbage collection algorithm
3. Write the Test cases for the amazon review page which has these things on that page: stars to rate the product two edit boxes: 1 for title, 2 for review two buttons: ok and cancel.
Given an array of integers and an arbitrary integer, find the number of pairs of integers in the array whose sum is equal to the arbitrary integer.
Signed NDA. Definitely review algorithms and basic data structures.
signed a nda
11 Answers Given references to roots of two binary trees, how do you short circuit determine whether the sequences of the leaf elements of both the trees are same ? The structure of two BTs may be different. Short circuit : for ex. If the very first leaf element of each tree is different, the algorithm should stop immediately returning false instead of checking all the leaf elements of both trees.
Viewing 1011 - 1020 interview questions