Find the longest sequence of multiple Parentheses

Example 1

s = ")(())(()"
4

--

--

--

Lead, Product Development, Embedded System Specialist/Mad scientist

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Hearts Fly — Unity VFX Graph

Flutter Login Register UI

Bash Scripting Tutorial — Part 4

How to root Alcatel One Touch m Pop 5020d

ScreenShot_20160422225054

Configuring Git Bash to Run Python [For Windows]

CS371p Spring 2022: Randall Crawford

Case Study: Automation of adding courses in foreign languages for the Workfusion Automation Academy

DevOps in a Serverless Environment: 7 Best Practices

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Iqram Ali

Iqram Ali

Lead, Product Development, Embedded System Specialist/Mad scientist

More from Medium

Python Algorithm: Pt. 10 Bellman Ford

Everything is an object?!

Two Sum | Interview Question

Window Sliding Technique |Explained Simple