Question: Example 1 : Input: flowers = 3 , nights = 4 Output: 1 5 Explanation: 0 . Initially: [ 1 , 1 , 1 ]

Example 1:
Input: flowers =3, nights =4
Output: 15
Explanation:
0. Initially: [1,1,1]
0. After 1 night: [1,2,3]
0. After 2 nights: 1,3,6
O. After 3 nights: 1,4,10
0. After 4 nights: 1,5,15
So, the last flower would have 15 petals.
Example 1 : Input: flowers = 3 , nights = 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!