## Question 1 What is the maximum amount of water that would be trapped for the following given input? heights = [0, 1, 2, 0, 1, 3] ### Options 1. 7 Incorrect ---------------------------- 2. 3 Correct The maximum rainwater will be trapped between bar **2** and bar **3**. 2 units between bar **2** and bar **1**. 1 unit between bar **1** and bar **3**. ---------------------------- 3. 6 Incorrect ---------------------------- 4. 5 Incorrect ---------------------------- --------------------------------------------- ## Question 2 What is the maximum amount of water that would be trapped for the following given input? heights = [0, 1, 3, 1, 0, 1, 4, 0, 2] ### Options 1. 9 Correct The maximum rainwater will be trapped between bar **3** and bar **2**. 7 units between bar **3** and bar **4**. 2 units between bar **4** and bar **2**. ---------------------------- 2. 12 Incorrect ---------------------------- 3. 18 Incorrect ---------------------------- 4. 6 Incorrect ---------------------------- --------------------------------------------- ## Question 3 Among the given elevation heights, which set of heights could potentially result in a maximum of $7$ units of trapped water? ### Options 1. [1, 3, 1, 0, 1, 4, 0, 2] Incorrect ---------------------------- 2. [0, 1, 4, 0, 2] Incorrect ---------------------------- 3. [3, 1, 0, 1, 4] Correct The maximum rainwater will be trapped between bar **3** and bar **4**. 7 units between bar **3** and bar **4**. ---------------------------- 4. [4, 1, 0, 2] Incorrect ---------------------------- ---------------------------------------------