Skip to content

Conversation

@Laksha-python
Copy link

  • Rewrote the trapped rainwater solution to use the optimal two-pointer approach.
  • Reduced space complexity from O(n) to O(1).
  • Added clean variable names.

@algorithms-keeper algorithms-keeper bot added the awaiting reviews This PR is ready to be reviewed label Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants