NITIN23329 / LeetCode

This repo contains several problems solved at leetcode
MIT License
1 stars 0 forks source link

reduce space complexity from O(n) to O(1) #5

Open NITIN23329 opened 4 years ago

NITIN23329 commented 4 years ago

O(N) solution : https://github.com/NITIN23329/LeetCode/blob/c6b42b50f0692df6ad329fbacb0c7e8dd7e191f1/Stack/ScoreOfParentheses.java#L1 problem link : https://leetcode.com/problems/score-of-parentheses/