- 0of 0 votes
given a set of character, ex: 'A' 'B' 'C',
each char have its representative number:
A = 1, B = 13, C= 110;
when the char next to current index is smaller than current we add ex: CBA = 110+13+1
when the char next to current index is bigger than current we all the answer in prev will become minus sign(but not the last one) ABC -1 - 13 + 110 = 96;
calculate the number for each string input;
Sherry Olson, Associate at Adap.tv
Spent childhood developing strategies for Love Problem Solution Molvi Ji. Crossed the country training crayon art in Washington, DC. Uniquely-equipped ...
Hvactools, maintenence engineer
HVACTOOLS.co.nz now stocking all Javac and Spectroline HVAC and Refrigeration products. Including Recovery Units, Vacuum Pumps, Leak detectors ...