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 →

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 →

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 →