calculating combination in java -


possible duplicate:
combinatoric 'n choose r' in java math?

is there method in java can use class can calculate ncr without coding myself?

which means if i, example, give 5 , 3 parameter of combination related method return me 10.

i want know class method included , how use it.

i believe djna right combinatorics not appearing in jdk 6. perhaps in future version of java platoform might see it.

often common algorithms such can found in apache commons libraries. can in commons math: http://commons.apache.org/math/apidocs/index.html.

but if need ncr on numbers, rather sets, can steal code koders: http://www.koders.com/java/fidb0df1a89f0472f6f4039af61944ba2d072af6032.aspx.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -