a-cpp-coder
Joined
3,920 Experience
39 Lessons Completed
0 Questions Solved
Activity
Posted in Base62 Decoding Short Codes Discussion
Thank you very much for all of your work! You are my teacher!
Also, I think I have a better implementation of the decoding algorithm (since ** is a costly operation):
def self.decode(string)
number = 0
string.each_char.with_index do |char, index|
number = ALPHABET.index(char) + number * BASE
end
number
end
Hello Collin,
I want to ask what VSCode theme did you use in this lesson ?
I find it very nice!