Maximizing the Profit

  • + 0 comments

    What if input is [-5, -4, 2]. Should the output be 40? In real world wouldn't the profit be negative?