0
I can’t get the trinary network down:
The logic is as follows:
- I register in the system and a referral link is generated;
- Occupies the 1st, 2nd and 3rd position (can be registered through my referral or spill link, ie another link);
- fourth register goes to the First position available from your 1st position already busy in first class;
- 5th register goes to the First position available from its 2nd position already busy in first class;
- sixth register goes to the First available position of your 3rd position already busy in first class;
- It follows thus in all classes, always distributing the register in an equal way in a network;
The problem
According to the image, when the 8º register is accomplished, it will not be able occupy the 7th position 2nd class. This position has already been occupied by a direct register.
At this point, the system should look for the next available position in the 2nd class.
You will always have to fill the class/line to start another class.
I don’t want the programming, I want the logic to build that network.
By "logic", I understand you mean "algorithm"? That’s it?
– Victor Stafusa
Yeah, the algorithm I can’t quite put together.
– Matheus