Implement your own Base64 encoding and decoding without external libraries.
Constraints
Example
>>> base64_encode("Man")
'TWFu'
>>> base64_encode("Ma")
'TWE='
>>> base64_encode("M")
'TQ=='
>>> base64_decode("TWFu")
'Man'
>>> base64_decode("TWE=")
'Ma'
>>> base64_decode("TQ==")
'M'
>>> base64_encode("")
''
>>> base64_decode("")
''
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints