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

in python
in python BETA Can't read the text? Switch theme 12. [Programming] Max

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!