Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 0535-encode-and-decode-tinyurl.js
Looking at the code I noticed that the toString function there was pointless considering the fact that js type coersion already converts the number to the string during concatenation. Also I also noticed the else block only returned true or false rather than the string as the question requested, so I added what I think is a fitting solution to that.
- Loading branch information