Skip to content

Latest commit

 

History

History

java-combinations

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Algorithms for Finding all Possible Combinations of k Elements in an Array with Java Implementation

Refer to the http://hmkcode.github.io/calculate-find-all-possible-combinations-of-an-array-using-java/ for more info.

Given an array of size N e.g. e={'A','B','C','D','E'} N=5, we want to find all possible combinations of K elements in that array. For example, if K=3 then one possible combination is of array e is `{'A','B','C'}. Here we have three different algorithms for finding k-combinations of an array.

combinations