Internship Software Interview Questions

24,861 internship software interview questions shared by candidates

You are given a rock that weighs 40kg and you can break it into 4 pieces. How should you break the rock such that you can use the 4 pieces in order to determine the weight of any object that has a mass between 1kg and 40kg?
avatar

Internship Software Engineering

Interviewed at Microsoft

4
Nov 22, 2022

You are given a rock that weighs 40kg and you can break it into 4 pieces. How should you break the rock such that you can use the 4 pieces in order to determine the weight of any object that has a mass between 1kg and 40kg?

they asked me to implement the add method for a binary tree followed by a problem to try to find it's brute force solution, the second interview was to implement an algorithm with 3 pointers to shrink a string by the number of repeated characters and override the original string with the answer.
avatar

Software Engineer(Internship)

Interviewed at Microsoft

4
Oct 23, 2024

they asked me to implement the add method for a binary tree followed by a problem to try to find it's brute force solution, the second interview was to implement an algorithm with 3 pointers to shrink a string by the number of repeated characters and override the original string with the answer.

Viewing 2751 - 2760 interview questions

Glassdoor has 24,861 interview questions and reports from Internship software interviews. Prepare for your interview. Get hired. Love your job.