Tag: string algorithm
December 30, 2012
algorithms, brute force, implementation, javascript, math, programming languages, python, string, tools / utilities, tricks, vbscript
In , the base 62 number conversion to base 10 is implemented. To extend the conversion to arbitrary bases, we can use base 10 as the intermediate base, i.e. …
Base62, like Base10 (decimal), Base16 (hexadecimal), is a number system. Base62 uses 62 possible ASCII letters, 0 – 9, a – z and A – Z, therefore it is often …
PHP Provides str_rot13 function to rotate alphabetic characters by 13 places. However, there is no str_rot47 function to rotate 47 places over a larger mapping table. The following is …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/245/B It is an easy string-matching related problem. You can have many ways to solve this. Because of the limitation, i.e. the first letter must …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/1/B The implementation may not be so easy without Regual Expressions. The core idea is to provide conversion between base 10 and base 26. For …