Question: in python BETA Can't read the text? Switch theme 12. [Programming] Max difference You're given a sequence of integers on a single line via standard
BETA Can't read the text? Switch theme 12. [Programming] Max difference You're given a sequence of integers on a single line via standard input, each separated by a single space. Print the maximum difference (in absolute value) between any two numbers in the sequence on a single line on standard output. Assumptions Each number is separated by a single space. The numbers can be positive, zero or negative. Note: Your program has to accept input via standard input. To ensure the code is evaluated correctly, please don't print anything except the answer on the output. E.g. when using R, use "cat" instead of "print" for the output. Example input: 192-71043 5 L Answer: 17 6 7 Explanation: The largest absolute difference between any two numbers in the input is 1-7-101 = 17
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
