Category: string
May 20, 2012
algorithms, beginner, code, codeforces, data structure, implementation, programming languages, python, string, technical
The problem is from codeforces: http://www.codeforces.com/problemset/problem/158/C Using a stack will help solve this problem. Luckly, python supports stack structure by using list. The append() and pop() are used to …
The problem is from codeforces http://www.codeforces.com/problemset/problem/12/A This is probably the easiest problem I’ve ever seen in codeforces…. no tricks, no math or algorithms. It is very straightforward. The python solution …
The problem is from codeforces http://www.codeforces.com/problemset/problem/49/A Just came back from Tesco, have shopped for the food next week. Feeling a bit tired, however, I enjoy solving small problems using …
This is from http://www.codeforces.com/problemset/problem/131/A The python does not allow altering string, because it seems the string is immutable. For example, if you try the following. s = "1234" s …