Hi, I want to prepare my data for a lookup table. It must be monotonically increasing: How can I do that ?
For example:
Before:
NAN 6 1 8 3 12 10 98 Q O R P U T S1 C A D B G F E4 J H K I N M L13 L J M K P O N9 X V Y W B A Z12 E C F D I H G
After:
NAN 1 3 6 8 9 10 121 A B C D E F G4 H I J K L M N8 O P Q R S T U9 V W X Y Z A B12 C D E F G H I13 J K L M N O P
Best Answer