You are not logged in. Please login at www.codechef.com 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

2★mshubham93
315611
accept rate: 0%


Hi, sorry i haven't really tried solving your problem but on googling i found this:
PDF
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! :)

link

answered 30 Jun '13, 19:23

sunny_patel's gravatar image

2★sunny_patel
1.3k31025
accept rate: 19%

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×2,220
×900

question asked: 30 Jun '13, 18:50

question was seen: 3,574 times

last updated: 30 Jun '13, 19:23