Ok, the concept is simple, first you solve the algorithm above you, then you give several inputs and their respective outputs using a new specific algorithm.
Rules:
1.) Be easy! If your algorithm isn’t simple enough, or isn’t logical, then no one will be able to solve it, and thus the thread will come to a hault.
2.) The algorithm doesn’t need to be your own, but you’re more than welcome to make up your own too.
3.) You MUST solve the algorithm above you before posting a new problem.
4.) If you can not solve an algorithm, you can ask the author for either a hint or more specific inputs, but someone needs to solve it before you go on.
5.) If you solve an algorithm, you aren’t required to make your own; the person who posts after you just won’t have to solve the previous one to post theirs.
Ok, here’s mine (input on left, output on right):
0 - 0
1 - 1
2 - 2
3 - 3
4 - 10
7 - 13
8 - 20
10 - 22
12 - 30
15 - 33
16 - 100
20 - 110
99 - 1203
100 - 1210
1000 - 33220
9999 - 2130033
Ok, so that’s a quick program I made in c++ earlier today. And no, I won’t post the sourcecode, for obvious reasons