Exercises/#91 Valid Parentheses
#91

Valid Parentheses

EasyπŸ“š Stack & Queue
40 XP

Problem

Given a string containing '(', ')', '{', '}', '[', ']', determine if the input string is valid.

Examples

Input: s='()'
Output: true

Input: s='()[]{}'Output: true

Input: s='(]'
Output: false
stackstring
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

91 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features