Tag: implementation
In most cases, if you are learning a new language, you will have to figure out in what cases, variables are copied by references and in what other cases, …
I came across the any keyword in Python a couple days ago when I was trying to solve the problem in https://helloacm.com/a-sleuth/ At that time I did not fully …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/158/A It is summer. The temperature today in Sheffield is 25 degree. I got to say, I feel a bit sleepy in the afternoon. …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/118/A Python is good at string manipulations. The problem is easy and the solution is straightforward. Just read the problem statement carefully… I didn’t …
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 …