You are not logged in. Please login at to post your questions!


All Possible Combination

Given four numbers(say 1,2,3,6). How Can we generate all possible combinations using addition,subtraction,multiplication,division and brackets.

I have found a similar problem: Free Parentheses (ACM ICPC Jakarta 2008 LA 4143) please help..

asked 30 Jun '13, 18:50

mshubham93's gravatar image

accept rate: 0%

Hi, sorry i haven't really tried solving your problem but on googling i found this:
It's a huge document go to page number 52 according to original numbering or page number 64 of the pdf or simple use CTRL+F and search for "free parenthesis";)
This problem is listed under dynamic programming and it has been explained nicely with a pseudo-code so you can have a look
Hope this helps! :)


answered 30 Jun '13, 19:23

sunny_patel's gravatar image

accept rate: 19%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 30 Jun '13, 18:50

question was seen: 3,574 times

last updated: 30 Jun '13, 19:23