LeetCode - Merging piles of stones
Without even doing anything clever regarding the algorithm, this:

    new_count = count + sum(stones[start:start + k])
    merged_count = sum(stones[start:start + k])


can be cleaned up as

    merged_count = sum(stones[start:start + k])
    new_count = merged_count + count