We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4661432 commit 7b30dc2Copy full SHA for 7b30dc2
1 file changed
java-combinations/README.md
@@ -0,0 +1,12 @@
1
+Non-Recursive Algorithm for Finding Combination
2
+===============================================
3
+
4
+Here is a generic non-recursive algorithm for finding all possible combination for an array of objects.
5
6
+For example, if we have an Array of elements=`{"A","B","C","D","E"}` and we want to find the combination of these elements taken 3 at a time.
7
+Using math we can find the number of possible combination using a known [formula](https://en.wikipedia.org/wiki/Combination).
8
9
+However, to find those combinations we need an algorithm to do so.
10
+Below image explains the steps taken by the algorithm to find the results.
11
12
+
0 commit comments