From 31886803b12c18aea5a7f21bd30582466a538ba9 Mon Sep 17 00:00:00 2001 From: RazanAlthkafi <91524624+RazanAlthkafi@users.noreply.github.com> Date: Tue, 8 Mar 2022 16:35:52 +0300 Subject: [PATCH] solotion --- README.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index debb56b..420634a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,21 @@ Create a function that receives an integers array and returns the number that ap | (1,1,2) | 2 | | (2,2,1) | 1 | +answes : +func retriveNum (aray: [Int]){ + for i in 0.. Bool{ + var check = false + if text.contains("}{"){ + return false + } + else if text.count % 2 != 0{ + return false + } + return true +} +brac(text: "}{}")