The River I Puzzle

Hello everyone!

I am currently taking a break in the middle of the night because I thought I finally got the solution right for this problem…Only to find out I only pass the first test.
I have performances issues on every other test altough I tried to keep it as simple as can be.

Can anyone help me? That’d be much appreciated!


2 posts were merged into an existing topic: The River I - failing the last validator