Skip to content

Commit 4be0c56

Browse files
committed
Reformat the readme.md
1 parent 4097453 commit 4be0c56

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ You can check out an example project to see how to use the library [combinatoric
4545
| [Permutations with repetitions](#4-permutations-with-repetitions) | Yes | Yes | `Generator.permutation(...).withRepetitions(n).stream()` |
4646

4747

48-
###1. Simple combinations
48+
### 1. Simple combinations
4949
A simple k-combination of a finite set S is a subset of k distinct elements of S.
5050
Specifying a subset does not arrange them in a particular order. As an example, a poker hand can
5151
be described as a 5-combination of cards from a 52-card deck: the 5 cards of the hand are all distinct,
@@ -73,7 +73,7 @@ And the result of 10 combinations
7373
[white, green, blue]
7474
```
7575

76-
###2. Combinations with repetitions
76+
### 2. Combinations with repetitions
7777
A k-multicombination or k-combination with repetition of a finite set S is given by a sequence of
7878
k not necessarily distinct elements of S, where order is not taken into account.
7979

@@ -98,7 +98,7 @@ And the result will be:
9898
[orange, orange, orange]
9999
```
100100

101-
###3. Simple permutations
101+
### 3. Simple permutations
102102
A permutation is an ordering of a set in the context of all possible orderings. For example, the set
103103
containing the first three digits, 123, has six permutations: 123, 132, 213, 231, 312, and 321.
104104

@@ -142,7 +142,7 @@ The result does not have duplicates. All permutations are distinct by default.
142142
Notice that we have 6 permutations here instead of 24. If you still need all permutations,
143143
you should call method `simple(PermutationGenerator.TreatDuplicatesAs.IDENTICAL)`.
144144

145-
###4. Permutations with repetitions
145+
### 4. Permutations with repetitions
146146
Permutation may have more elements than slots. For example, all possible permutation of `12`
147147
in three slots are: `111`, `211`, `121`, `221`, `112`, `212`, `122`, and `222`.
148148

@@ -171,7 +171,7 @@ And the list of all 8 permutations
171171
[orange, orange, orange]
172172
```
173173

174-
###5. Subsets
174+
### 5. Subsets
175175
A set `A` is a subset of a set `B` if `A` is "contained" inside `B`. `A` and `B` may coincide.
176176
The relationship of one set being a subset of another is called inclusion or sometimes containment.
177177

@@ -213,7 +213,7 @@ And the list of all 8 subsets
213213
[one, two, three]
214214
```
215215

216-
###6. Integer Partitions
216+
### 6. Integer Partitions
217217
In number theory, a partition of a positive integer `n` is a way of writing `n` as a sum of positive integers.
218218
Two sums that differ only in the order of their summands are considered to be the same partition;
219219
if order matters then the sum becomes a composition. A summand in a partition is also called a part.

0 commit comments

Comments
 (0)