Domanda di colloquio di Qualys

Find the maximum sum incremental from array with starting Index and End Index.

Risposta di colloquio

Anonimo

4 dic 2018

3 2 4 5 1 6 9 here 2 3 4 is a incremental and their sum is 9. But 6 9 are also incremental and their sum is 15 which is more than 9. answer is start Index: 5 End Index: 6 Sum: 15