ankitapuri / DSA-guide

Trying to cover important DSA
MIT License
49 stars 113 forks source link

[feature-1] Trapping Rain Water added in CPP #255

Closed kiruba-r11 closed 3 years ago

kiruba-r11 commented 3 years ago

Related Issues

Closes: #254

Describe the changes you've made

I have completely implemented a CPP program that takes the input of array elements from the user and prints the amount of rainwater that can be trapped.

Type of change

How Has This Been Tested?

This has been tested by generating a set of random inputs using a generator and verified the outputs manually.

Describe if there is any unusual behavior of your code(Write NA if there isn't)

NA

Checklist:

kiruba-r11 commented 3 years ago

@ankitapuri Please have a look at it