Special String Again

  • + 0 comments

    No Need for the // in ans += (i[1] * (i[1] + 1)) // 2 as i[1] will always be greater than 1 and hence i[1]+1 will be even when i[1] is odd and vice-versa. So this formula yeilds only integer results.