Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Lightbulb Intro by Tinus_Trotyl
from datetime import datetime
from typing import List
def sum_light(els: List[datetime]) -> int:
return sum((els[i + 1] - els[i]).total_seconds() for i in range(0, len(els), 2))
Nov. 10, 2020