Given a string of parentheses types and an array of their efficiency ratings, write a function to find the most efficient valid parentheses sequence that can be formed. Return its total efficiency score.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Given a string with parentheses, write a function that removes the minimum number of characters to balance the parentheses.Given an array of points on a plane (x,y), write a function to return the distance between the closest pair of points.You are given a function that can add only two single digits. Using it, write a function that adds two non-negative integers supplied as strings and returns the sum as a string.Related courses

Course

Course
Course
