HackerRank Customer Service Capacity

Hi, today I would like to show you how to solve the code puzzle with the time line. Where you have to in O(n) determine how many maximal events happen the same time… I hope you like it ;-). I looked on the Internet and there is no correct solution for this problem in my opinion, so far. So I decided to write on Continue ReadingHackerRank Customer Service Capacity

Duplicater for Duplicate Search

Hi, today I would like to show you very simple idea, that is not implemented in any operating system I know. The Duplicater is a simple solution for find in folders tree duplicates of files with different names but with the same content. Solution is very simple. It analyzes folder structures and get all files and calculates MD5 sums for each file. When any Continue ReadingDuplicater for Duplicate Search

Binary Tree Visible Nodes Counting

Hi, today I would like to share with you solution of the code puzzle with binary tree. There are 2 trees examples t1 and t2 and your job is to find visible nodes and visible nodes are that are not smaller then all parents. When you go down for t1 tree you can find 4 such visible nodes. And for the second tree there Continue ReadingBinary Tree Visible Nodes Counting