每周完成一个ARTS(Algorithm,Review,Tips,Sha):至少做一道leetcode算法题,阅读并点评至少一篇英文技术文章,学习至少一个技术技巧,分享一篇有观点和思考的技术文章.
Algorithm
.RemoveOutermostPantheses
Avalidpanthesesstringiseitherempty(""),"("+A+")",orA+B,wheAandBavalidpanthesesstrings,and+psentsstringconcatenation.Forexample,"","()","(())()",and"(()(()))"aallvalidpanthesesstrings.AvalidpanthesesstringSisprimitiveifitisnonempty,andthedoesnotexistawaytosplititintoS=A+B,withAandBnonemptyvalidpanthesesstrings.GivenavalidpanthesesstringS,consideritsprimitivede
转载请注明:http://www.quwenlai.com/zeyy/17670.html