Question: Given a string containing opening and closing parentheses, check if it is balanced.
A string is considered balanced if each opening parenthesis has a corresponding closing parenthesis in the correct order.
For example:
Input: "(({}[()]))" Output: True
Input: "({[})" Output: False
Your task is to write a function that takes a string as input and returns True if the string is balanced, and False otherwise.
Example function signature:
def is_balanced(s: str) -> bool
What is a stack?
What is a list?
The following metrics were computed from 1 interview experience for the Flipkart Web Developer role in New Delhi, India.
Flipkart's interview process for their Web Developer roles in New Delhi, India is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Flipkart's Web Developer interview process in New Delhi, India.