aspose file tools*
The moose likes Beginning Java and the fly likes i want to try and solve this question.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

i want to try and solve this question..

alex lotel
Ranch Hand

Joined: Feb 01, 2008
Posts: 191
i need to constract a method which gets the two numbers
"n" and "k"
and prints all the avaible subgroops in "k size"
for example :

subsetofsize(4,2)
prints

12
41
13
32
42
34

i know i should use this recursion of subsets
i need to change it some how
i know how it works but i dont have any clue of how to change it
in order to get the resolt i was asked in the question

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36486
    
  16
Joe, can I suggest you delete this thread and transfer the original thread from Intermediate over here?
alex lotel
Ranch Hand

Joined: Feb 01, 2008
Posts: 191
you said that i should go to the begginer forum with that question

thats what i did

didnt mean to cause any inconvinience
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i want to try and solve this question..
 
Similar Threads
i want to try and solve this question..
i cant find the logic in this recurtion
you are my last resort for this question
help in solving recursive problems??
here is a question and i have a very similar code but i need to convert it