0

What is your opinion on this code? What can i improve?

http://www.sololearn.com/app/sololearn/playground/cgW5mb1hTSqA/ https://code.sololearn.com/cgW5mb1hTSqA/# This code takes take input word and converts it into a number according to the major system. What would you change? I'm really terrible at regex. Is there an easier way to substitute / to replace those cases? If there are repeating chars the most length of it should have the highest priority (should substitute to just one digit)

29th Nov 2016, 9:09 PM
ordens
ordens - avatar
1 Resposta
+ 1
Dude, your logic is awesome! Practice makes it perfect anyway. The code is 100% functional (I know you know that) but not so mobile-friendly when it comes to SoloLearn app. It's not your fault though. The SoloLearn should make the user be able to write multiple inputs in the same running program.
30th Nov 2016, 12:06 AM
Gabriel Popa
Gabriel Popa - avatar