Skip to content

Conversation

@sristi-i
Copy link

@sristi-i sristi-i commented Dec 1, 2025

No description provided.

@super30admin
Copy link
Owner

  • Strengths:
    • The logic for counting subarrays is correct and well-implemented.
    • The use of map.getOrDefault is efficient and follows best practices.
    • The code is readable and well-commented.
  • Areas for Improvement:
    • The runningsums array is unnecessary and can be removed. Instead, compute the running sum on the fly to save space.
    • The initial comment about referring to online resources is honest but could be more specific about what was learned to improve understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants