Software Development Internship Interview Questions

212 software development internship interview questions shared by candidates

The problems that I remember: 1. Write a lock 2. how do you test a generator for random numbers? 3. write a data structure that can take input integers and keep track of the k largest of the numbers typed in so far
Jan 13, 2014

The problems that I remember: 1. Write a lock 2. how do you test a generator for random numbers? 3. write a data structure that can take input integers and keep track of the k largest of the numbers typed in so far

2a. Given a binary array (an array consisting of only '1's and '0's) of length n, find the minimum number of operations necessary to collect all the '1's at the ith position. In one operation you can shift only one '1' to an adjacent position. Return the minimum number of operations required for every index from 1 to n.
avatar

Software Development Engineer Internship

Interviewed at Razorpay

3.5
Aug 26, 2021

2a. Given a binary array (an array consisting of only '1's and '0's) of length n, find the minimum number of operations necessary to collect all the '1's at the ith position. In one operation you can shift only one '1' to an adjacent position. Return the minimum number of operations required for every index from 1 to n.

2b. Given a binary tree, flatten the binary tree into one dimension in such a way that the order in which one can access the elements is the same as a preorder traversal and only the left child nodes can contain values, the right child has to point NULL.
avatar

Software Development Engineer Internship

Interviewed at Razorpay

3.5
Aug 26, 2021

2b. Given a binary tree, flatten the binary tree into one dimension in such a way that the order in which one can access the elements is the same as a preorder traversal and only the left child nodes can contain values, the right child has to point NULL.

Viewing 161 - 170 interview questions

Glassdoor has 212 interview questions and reports from Software development internship interviews. Prepare for your interview. Get hired. Love your job.