how to add brackets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmlingams
    New Member
    • Oct 2016
    • 1

    how to add brackets

    Example String: hello: how, are, you; i'm; fine, and, you;
    Expected String hello:((how,((a re, you;)) i'm fine,((and, you;))

    how to add brackets this type
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    Please decribe the rule/algorithm.
    It is not clear at all.
    - why are there 6 opening brackets, but only 4 closing brackets?
    - I can't detect a schema when a semicolon will be printed or not (left-out after "i'm", but printed after "you".

    Please show us what you have written so far and where you are stuck.

    Comment

    Working...