Skip to content

storylog/validate-brackets-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

validateBrackets

Given a string containing only (, ), {, }, [ and ], determine if the given string is valid.

A string is valid if it is closed by the same type of brackets and closed in correct order.

Examples

  • input () returns true
  • input (){}[] returns true
  • input (} returns false
  • input ({)} returns false
  • input {[]} return true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published