Ligt het nou aan mij of klopt het tweede voorbeeld niet?
Of mis ik nu wat?
Dus 22 + 10 = 32, maar ik tel er toch echt maar 31:In this larger example, in a chain that uses all of the adapters, there are 22 differences of 1 jolt and 10 differences of 3 jolts.
code:
1
2
3
4
| 1 2 3 4 7 8 9 10 11 14 17 18 19 20 23 24 25 28 31 32 33 34 35 38 39 42 45 46 47 48 49 | 31 --------------------------------------------------------------------------------------+---- 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 | 22 3 3 3 3 3 3 3 3 3 | 9 |
Of mis ik nu wat?
... en gaat over tot de orde van de dag