1388. Pizza With 3n Slices
Last updated
Last updated
https://leetcode.com/problems/pizza-with-3n-slices
There is a pizza with 3n slices of varying size, you and your friends will take slices of pizza as follows:
You will pick any pizza slice.
Your friend Alice will pick next slice in anti clockwise direction of your pick.
Your friend Bob will pick next slice in clockwise direction of your pick.
Repeat until there are no more slices of pizzas.
Sizes of Pizza slices is represented by circular array slices
in clockwise direction.
Return the maximum possible sum of slice sizes which you can have.
Example 1:
Example 2:
Example 3:
Example 4:
Constraints:
1 <= slices.length <= 500
slices.length % 3 == 0
1 <= slices[i] <= 1000