From c739aecf0d137aff9719e96571e1203a8a1126a3 Mon Sep 17 00:00:00 2001 From: project1byeshraq Date: Tue, 8 Mar 2022 14:49:20 +0300 Subject: [PATCH] eshraq --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index debb56b..e8fdc99 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,19 @@ Create a function that receives an array of items & arrays and returns one flatt ## 4th Challenge Create a function that receives a string that contains combination of parentheses, square brackets, and curly braces. Then, it returns true if every opening bracket has a closing pair. +##Sol : +var st = Utils.readString() +let a = "{" +let aa = "}" +let b = "(" +let bb = ")" +let c = "[" +let cc = "]" + +if st == a && aa || b && bb || c && cc + print ("true") + + | Input | Output | | -------- | -------- | | }{ | false |