Company: Bosch_9may
Difficulty: medium
An NLP program was designed to read a book when it is shown to the cam of the computer. They found it is not performing as expected if the book has full of numbers in it. After a few observations, it was found that the program is failing to read two consecutive numbers with the highest gap. Gap betwee n consecutive numbers is the absolute difference b etween them . First, they planned to fix this issue. Can you design a program to help NLP team, it should accept n numbers and find the highest gap between two consecutive numbers. Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings while reading the input or while printing, as these contribute to the standard output. Constraints: 3 -1000 Input format A single line of input that has few numbers separated by a single white space Output format A single line of output contains maximum difference d. Sample Input1: 1 4 8 19 23 999 Sample Output1: 976 Explanations: The highest gap between 23 and 999 is 976,w