This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.flipkart.com/philips-hr1351-c-250-w-hand-blender/p/itmdyczhkteb5ay9?pid=HBLDYCZEE8FX45K2&ref=L%3A385460736645024381&srno=p_9&query=blender&otracker=from-search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Problem Statement | |
| Grazyna works in a laboratory. Her team is about to perform an experiment with special bacteria. | |
| There is a row of vessels. Each vessel contains a colony of bacteria. The colonies may currently have different sizes. Namely, for each valid i there are currently colonies[i] bacteria in the i-th vessel (0-based index). | |
| Grazyna has a theory about how the colony sizes change. According to the theory, the colony sizes only change during nights and it only happens in two specific cases: | |
| If during a day a colony finds itself immediately between two larger colonies, during the next night its size will increase by 1. | |
| If during a day a colony finds itself immediately between two smaller colonies, during the next night its size will decrease by 1. | |
| Note that the colonies in the first and last vessel never change their sizes as they are never between two colonies. Also note that multiple colonies can change their size each night. |