Sobes.tech
Middle

/* Antud on rida, mis sisaldab sümboleid (){}. Vajalik on määrata, kas sisendrida on sulgude poolest tasakaalus. */ func isBalanced(s string) bool { // TODO: implementeeri see return false } fmt.Println(isBalanced("()")) // -> true fmt.Println(isBalanced("({()})")) // -> true fmt.Println(isBalanced("(()")) // -> false fmt.Println(isBalanced("(()))")) // -> false fmt.Println(isBalanced("({})")) // -> false