Ok, via coding, I found that one of my math-related link is where orders actually matters. And I would like to know the case for this when order does not matter.
Here’s the problem at hand.
You have this string - “chincherinchee”
You must select 5 chars from it.
How many possible ways you can select chars without order mattering?
The answer is 31.
Know: “chincherinchee” has 6 letters. “chiner” is all the letters. So, last index possible is 5.
And with code, I was able to confirm that the answer is 31:
Point 30 is the 31th pixel.
But, I do not know how to solve this problem and I googled everywhere for this.
And here’s the printed result of indexes instead of chars (the letter r is the last index):
0,0,0,1,1
0,0,0,1,2
0,0,0,1,3
0,0,0,1,4
0,0,0,1,5
0,0,1,1,1
0,0,1,1,2
0,0,1,1,3
0,0,1,1,4
0,0,1,1,5
0,1,1,1,2
0,1,1,1,3
0,1,1,1,4
0,1,1,1,5
1,1,1,2,2
1,1,1,2,3
1,1,1,2,4
1,1,1,2,5
1,1,2,2,3
1,1,2,2,4
1,1,2,2,5
1,2,2,3,3
1,2,2,3,4
1,2,2,3,5
2,2,3,3,4
2,2,3,3,5
2,3,3,4,4
2,3,3,4,5
3,3,4,4,4
3,3,4,4,5
3,4,4,4,5
EDIT: My assumption may be wrong as well.
I tested with “000111222333” string, and I can select 4. Yet, 0,1,2,3 is not found within my code.