Ad
Algorithms
Logic
Code
Diff
  • def lostPencils(end):    
        return sum(range(1,end+1))
    • def lostPencils(end):
    • return (end+1)*(end/2)
    • return sum(range(1,end+1))