Results 1 to 5 of 5
  1. #1
    Ace
    Ace is offline Member
    Join Date
    Nov 2011
    Location
    Earth
    Posts
    16
    Rep Power
    0

    Default Troublesome input to analyze

    Hi,

    For example:

    1) (((1 2) (3 4)) ((5 6) (7 8)))
    2) (((1 2) 5) (3 4))

    I want to extract contents between brackets, in example 2) it would look like: 1 2, 1 2 5, 3 4, 1 2 3 4 5, 5. I don't have idea, although I'm thinking about that from several hours.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,955
    Rep Power
    8

    Default Re: Troublesome input to analyze

    How would you do this in your head, or with a piece of paper and a pencil? Write your steps out in plain language before you even sit down at a computer.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Ace
    Ace is offline Member
    Join Date
    Nov 2011
    Location
    Earth
    Posts
    16
    Rep Power
    0

    Default Re: Troublesome input to analyze

    Maybe your post wasn't much helpful but the advice was :). Thanks anyway, I have solved it.

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: Troublesome input to analyze

    Care to show us how you have solved it?

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Troublesome input to analyze

    Quote Originally Posted by Ace View Post
    Maybe your post wasn't much helpful but the advice was :). Thanks anyway, I have solved it.
    What was unhelpful about his advice? It seemed right on the mark to me.

Similar Threads

  1. Replies: 0
    Last Post: 10-14-2011, 12:33 AM
  2. how to analyze Java code
    By mmbathan in forum New To Java
    Replies: 1
    Last Post: 03-14-2011, 08:22 AM
  3. I cant analyze this code
    By eng_hyzoom in forum New To Java
    Replies: 6
    Last Post: 11-20-2010, 06:33 PM
  4. Analyze the SCJP Exam pattern for good score
    By kumarfair30 in forum Java Certification
    Replies: 0
    Last Post: 11-02-2009, 01:32 PM
  5. Analyze a string of words
    By zoe in forum Advanced Java
    Replies: 2
    Last Post: 07-26-2007, 10:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •