Skip to content

Solution #1021 - Abdul Wahab - 13/07/2025 #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AbdulWahab938
Copy link
Contributor

@AbdulWahab938 AbdulWahab938 commented Jul 14, 2025

This PR adds a solution for Leetcode Problem: Remove Outermost Parentheses.
The objective is to take a valid parentheses string and remove the outermost parentheses from every primitive substring, so that only the inner content remains.
The implementation efficiently tracks the current depth using a counter while iterating through the string, appending characters only when they are not part of the outermost layer.

@AbdulWahab938 AbdulWahab938 force-pushed the feature/remove-outer-most-parantheses branch from 8e9e0aa to 4ab4de5 Compare July 14, 2025 18:33
@AbdulWahab938 AbdulWahab938 changed the title Remove outer most parantheses Remove outer most parantheses 13-07 Jul 14, 2025
@AbdulWahab938 AbdulWahab938 changed the title Remove outer most parantheses 13-07 #1 - Remove outer most parantheses - Easy Jul 17, 2025
@AbdulWahab938 AbdulWahab938 force-pushed the feature/remove-outer-most-parantheses branch from 4ab4de5 to 86aa687 Compare July 18, 2025 12:20
@AbdulWahab938 AbdulWahab938 changed the title #1 - Remove outer most parantheses - Easy Solution #1021 - Remove outer most parantheses - Easy Jul 19, 2025
@AbdulWahab938 AbdulWahab938 force-pushed the feature/remove-outer-most-parantheses branch from 86aa687 to 21f3573 Compare July 19, 2025 09:25
@AbdulWahab938 AbdulWahab938 changed the title Solution #1021 - Remove outer most parantheses - Easy Solution #1021 - Abdul Wahab - 13/07/25 Jul 19, 2025
Copy link
Member

@JRS296 JRS296 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly check if this problem has been solved in Java. If it has been, move it to this folder

@AbdulWahab938 AbdulWahab938 force-pushed the feature/remove-outer-most-parantheses branch from 21f3573 to 03c7727 Compare July 19, 2025 09:29
@AbdulWahab938 AbdulWahab938 changed the title Solution #1021 - Abdul Wahab - 13/07/25 Solution #1021 - Abdul Wahab - 13/07/2025 Jul 19, 2025
@AbdulWahab938 AbdulWahab938 requested a review from JRS296 July 19, 2025 09:34
@AbdulWahab938 AbdulWahab938 force-pushed the feature/remove-outer-most-parantheses branch from 03c7727 to 3feb1fa Compare July 19, 2025 09:38
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