Software Development Internship Interview Questions

205 software development internship interview questions shared by candidates

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 205 interview questions and reports from Software development internship interviews. Prepare for your interview. Get hired. Love your job.