Yesterday I have spent some hours, trying to resolve one problem for shortest paths. The problem was coming from HackBulgaria and was somehow similar to these two problems here: Get the shortest path in a weighted graph with Dijkstra Dijkstra for …

Python Algorithms – Full Dijkstra is stunning again Read more »

Today, I will take a look at a problem, similar to the one here. In the article there, I produced a matrix, calculating the cheapest plane tickets between any two airports given. Today, the task is a little different. I would …

Python – Get the shortest path in a weighted graph – Dijkstra Read more »

After the article here, concerning the building of the binary trees and their usefulness, today I will show how to use these trees in action 🙂 Imagine that we have the following problem, used in arena.hackbulgaria.com: Implement a program in …

Python – Usage of a Binary Tree with List in Python Read more »

So, some time ago I have started to create apps in Django with Python. It is really fun and amazing, what one can achieve with this package 🙂 E.g., I have generated a small app, counting words and analyzing their repeatability, …

Python Django – How to add css to django application Read more »

Have you ever wondered on what servers the top 50 most visited Bulgarian sites run? That is definitely an interesting question, if you are Bulgarian IT admin and you have pretty much free time 🙂 Anyway, as far as I am …

Python – Crawling the top 50 sites from Bulgaria for their servers Read more »

initially, the idea of the article was to write four lines of code, doing the following 2 tasks: uploading data to a given file getting JSON data from file and using it in an application However, as soon as I started, I …

Python – Add data to external files and get JSON data from files Read more »

Some time ago I have started to learn Python. Today, I will present a way to solve the problem “Reduce file path”. The problem is the following – you are given a string and you should reduce it to a meaningful …

Python – Reduce file path problem (with string slicing and list comprehension) Read more »