Devise an algorithm that finds the sum of all the integers in a list. Describe an algorithm that takes as input a list of n integers and produces as output the largest diference obtained by subtracting an integer in the list from the one following it.