data and data1 are two strings with rainfall records of a few cities for months from January to December. The records of towns are separated by \n....
For further actions, you may consider blocking this person and/or reporting abuse
Python solution
Javascript with regex
Fyi, you can add language specific syntax styling immediately after the first code back-ticks.
github.com/adam-p/markdown-here/wi...
Ah! I hadn't closed the three back ticks!
Thanks, Matt. I tried that, and if you see my other posts you'll see I was successful, but it's not working for this one for some reason
JS solution
My Swift solution, not the best ☹️:
TypeScript
JS Solution
output:
Solution in Haskell: