Interns Interview Questions

248,188 interns interview questions shared by candidates

An analytical question about: Say you have ten stacks of coins with ten coins in each stack, each coin weighing 1g. However, one of the stacks has 2g coins instead of 1g coins. If you have a weighing scale and can only make one measurement, how do you determine which stack of coins weighs 2g each coin?
avatar

Technology Analyst Summer Intern

Interviewed at Goldman Sachs

3.7
Mar 21, 2013

An analytical question about: Say you have ten stacks of coins with ten coins in each stack, each coin weighing 1g. However, one of the stacks has 2g coins instead of 1g coins. If you have a weighing scale and can only make one measurement, how do you determine which stack of coins weighs 2g each coin?

Write an algorithm to construct run length encodings of arbitrary strings where repeated instances of the same character get replaced with [number of times character appears] + [character]. For example, "xxxxxx" becomes "6x". It should be unambiguous and the compressed string should always be shorter.
avatar

Intern

Interviewed at Google

4.4
Mar 28, 2015

Write an algorithm to construct run length encodings of arbitrary strings where repeated instances of the same character get replaced with [number of times character appears] + [character]. For example, "xxxxxx" becomes "6x". It should be unambiguous and the compressed string should always be shorter.

Given a string write a function which prints all the subsets of the string. Now make the function to return only unique solutions. For example if they give you "abc" you print out a ab abc ac b bc c Now for the unique solution constraint, if they give you "aba" the output should be: a ab aba b
avatar

Software Engineer Intern

Interviewed at Meta

3.6
Dec 13, 2013

Given a string write a function which prints all the subsets of the string. Now make the function to return only unique solutions. For example if they give you "abc" you print out a ab abc ac b bc c Now for the unique solution constraint, if they give you "aba" the output should be: a ab aba b

Viewing 111 - 120 interview questions

Glassdoor has 248,188 interview questions and reports from Interns interviews. Prepare for your interview. Get hired. Love your job.