I was given a short function in C (dictated because we were hanging on a phone): int foo(int a) { int result = 0; while (a >>= 1) result += 1 return result } And my task was to say what's wrong with this function, what's its purpose and what would I write my colleague who submitted it for a code review
Intern Interviews
Intern Interview Questions
An intern works in a professional environment to gain practical, meaningful, and work-related experience in their chosen field or career. Interns are trainees who sign up to work for an organization for a short period of time to gain experience. Interns may be unpaid, partially paid, or paid.
Top Intern Interview Questions & How To Answer
Question #1: Can you tell me about a time you failed something, either in school or at a job?
Question #2: How did you land in this particular field?
Question #3: What do you hope to gain from this experience?
248,596 intern interview questions shared by candidates
depth first search of a array in a non-recursive manner without using extra memory
Given an array of integers, find all pairs that will add to a given integer.
Are you more of a social person or an analytical person?
Find two integers in an unsorted array that produced a certain sum in linear time.
Technical Question. Given a string such as 3 + 2 / 5 - 3 * 4, calculate it.
Given a mathematical expression, what data structure would you use to evaluate the expression? How would you design the above question to use Trees/Graphs.
Tell me about yourself
What price per minute would you set for a cloud computing product that delivers a premium product and is currently set at $1.04 per minute?
Binary search trees
Viewing 1461 - 1470 interview questions