Software Development Engineer Interview Questions

32,861 software development engineer interview questions shared by candidates

Q: Maximum difference between two elements such that larger element appears after the smaller number Given an array arr[] of integers, find out the maximum difference between any two elements such that larger element appears after the smaller number. Examples : Input : arr = {2, 3, 10, 6, 4, 8, 1} Output : 8 Explanation : The maximum difference is between 10 and 2. Input : arr = {7, 9, 5, 6, 3, 2} Output : 2 Explanation : The maximum difference is between 9 and 7.
avatar

Software Development Engineer

Interviewed at ZoomRx

3.8
Aug 2, 2019

Q: Maximum difference between two elements such that larger element appears after the smaller number Given an array arr[] of integers, find out the maximum difference between any two elements such that larger element appears after the smaller number. Examples : Input : arr = {2, 3, 10, 6, 4, 8, 1} Output : 8 Explanation : The maximum difference is between 10 and 2. Input : arr = {7, 9, 5, 6, 3, 2} Output : 2 Explanation : The maximum difference is between 9 and 7.

Viewing 2281 - 2290 interview questions

Glassdoor has 32,861 interview questions and reports from Software development engineer interviews. Prepare for your interview. Get hired. Love your job.