Discuss Joins transpositions into one single cycle! in the Python Programming forum on Dev Shed. Joins transpositions into one single cycle! Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Time spent in forums: 8 h 42 m 41 sec
Reputation Power: 1
Originally Posted by Lux Perpetua
I can sort of guess at what you want to do, but you really need to explain your problem better.
ok basically I have a list of tuples, each tuple contains a pair of numbers which represent the sequential order of them in the bigger sequence, for example, (1,3),(3,2) : one comes before three and three comes before two so the final sequence will appear as 1,3,2.
the lower bound of the given sequence is 17 (there's no number that comes before 17) - no pair such as (x , 17) which means 17 comes first for sure in the sequence and so on following the same rule.
its not quite the most comfy problem to explain but i hope ive been clear enough )