โ† Raja Software Labs questions

Second maximum difference between two array elements

Filed under Raja Software Labs

The question

Given an array of integers, print the second largest difference between any two elements (for {14,12,70,95,65,22,30} the answer is 81).

No write-up yet. Related questions below have one.

Related Raja Software Labs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.