Appdynamics | October,22 | Online Assessments | Maximum Common Companies

Appdynamics · Question · Posted Oct 2022

Question 1 <problem>168</problem> You have been given an array a of N integers , find the max value of a[j]-a[i], such that i<j and a[j]>a[i] Constraints 1 < =N < =10^5 -10^9 < =a[i] < =10^9 Sample Input 5 1 4 7 9 2 Sample Output 8 Question 2 <problem>196</problem> Given a string of length 7 , containing either digits from 0 to 8, or a character '?' eg "137?0?2". You can replace '?' with any digit from 0 to ...

The full answer & interview discussion are available to premium members.

Log in Create a free account