In all the backtracking program i get a space before my output in Test cases!


#1

In all the backtracking program i get a space before my output in Test cases!!.. I have been suffering from this in all backtracking program. No reply yet in Seek Help. Can anyone tell me please what i am doing wrong?. I am getting correct answers in Custom Input.
Input 4:
My Output : (((()))) ((()())) ((())()) ((()))() (()(())) (()()()) (()())() (())(()) (())()() ()((())) ()(()()) ()(())() ()()(()) ()()()()
Expected Op: (((()))) ((()())) ((())()) ((()))() (()(())) (()()()) (()())() (())(()) (())()() ()((())) ()(()()) ()(())() ()()(()) ()()()()
The difference is one space. And i am not adding any space in my entire program. Can any one please help? :frowning: