(a) first, write a function to calculate the hamming distance between two binary numbers (b) write a function that takes a list of binary numbers and returns the sum of the hamming distances for each pair (c) find a solution for (b) that works in O(n) time.
Ingegneria Interview Questions
374,904 ingegneria interview questions shared by candidates
implement sqrt without using math libray
Two people are each stuck on their own island, connected by a ferryman with a lockable box. Each person has their own lock and key, but can't send the key along with the box. One person wants to send the other a diamond, but it must be placed into the box and locked or it will be stolen by the ferryman. How do you send the diamond without the ferryman stealing it?
General behavior questions, like why you want to work in Japan. Why did you study computer science, etc. Barely any technical question, as the interviewers have already checked my website and experiences, and know I have extensively experience and projects under my belt, and is probably more competitive than their full-time engineers.
Questions on basic Java,pointers concept,oops concept,Abstraction,Inheritance etc.
Why do you want to join us?
Write a function to caculate the angle between hour and minute hand on a clock.
Quickly estimate 2^64 without using a pen/papar.
Ants are at the corners of an equilateral triangle labelled 1, 2, and 3, each ant starts moving towards the next one (1 towards 2, 2 towards 3, 3 towards 1) at the same constant speed. How long until they meet ?
Provide a set of positive integers (an array of integers). Each integer represent number of nights user request on Airbnb.com. If you are a host, you need to design and implement an algorithm to find out the maximum number a nights you can accommodate. The constrain is that you have to reserve at least one day between each request, so that you have time to clean the room. Example: 1) Input: [1, 2, 3] ===> output: 4, because you will pick 1 and 3 2) input: [5, 1, 2, 6] ===> output: 11, because you will pick 5 and 6 3) input: [5, 1, 2, 6, 20, 2] ===> output: 27, because you will pick 5, 2, 20
Viewing 111 - 120 interview questions