You are given an integer array pizzas of length n, where pizzas[i] represents the weight of the pizza at index i.
Every day, you choose exactly
The weight gained each day is determined as follows:
On odd days (day
On even days (day
Return the maximum total weight you can gain after eating all pizzas.
Constraints:
pizzas.length
pizzas[i]
n is a multiple of
You are given an integer array pizzas of length n, where pizzas[i] represents the weight of the pizza at index i.
Every day, you choose exactly
The weight gained each day is determined as follows:
On odd days (day
On even days (day
Return the maximum total weight you can gain after eating all pizzas.
Constraints:
pizzas.length
pizzas[i]
n is a multiple of