Max-Min Difference in an Interval

  • + 0 comments

    The code for Javascript and Ruby also has the same mistakes.

    var [low, high] = readLine().trim().split(' ');
    low = parseInt(low);
    high = parseInt(high);
    
    low, high = gets.strip.split(' ')
    low = low.to_i
    high = high.to_i