Associate Software Engineer Interview Questions

26,014 associate software engineer interview questions shared by candidates

One of the question asked was a puzzle in my tech interview. A person has 10 bags each bag containing 10 pearls and each pearl weighs 10g. Nowa burglar steals a bag and replaces with a fake bag of pearls with each pearl weighing 10g but number of pearls still remaining 10. The person doesn't which is the correct bag. He can use a digital weighing scale but it can be only used once. Find a way to find the fake bag??
avatar

Associate Software Engineer

Interviewed at Robert Bosch India

4.1
Mar 7, 2017

One of the question asked was a puzzle in my tech interview. A person has 10 bags each bag containing 10 pearls and each pearl weighs 10g. Nowa burglar steals a bag and replaces with a fake bag of pearls with each pearl weighing 10g but number of pearls still remaining 10. The person doesn't which is the correct bag. He can use a digital weighing scale but it can be only used once. Find a way to find the fake bag??

Find a cycle in an array: You are given an integer array of size N. Every element of the array is greater than or equal to 0. Starting from arr[startIndex], follow each element to the index it points to. Continue to do this until you find a cycle. Return the length of the cycle. If no cycle is found return -1 Examples: countLengthOfCycle([1, 0], 1) == 2 , countLengthOfCycle([1, 2, 0], 0) == 3
avatar

Software Engineer Associate

Interviewed at Goldman Sachs

3.7
Feb 22, 2025

Find a cycle in an array: You are given an integer array of size N. Every element of the array is greater than or equal to 0. Starting from arr[startIndex], follow each element to the index it points to. Continue to do this until you find a cycle. Return the length of the cycle. If no cycle is found return -1 Examples: countLengthOfCycle([1, 0], 1) == 2 , countLengthOfCycle([1, 2, 0], 0) == 3

Viewing 131 - 140 interview questions

Glassdoor has 26,014 interview questions and reports from Associate software engineer interviews. Prepare for your interview. Get hired. Love your job.