This was an interesting challenge for me, first of all because C# was not offered as an option for solving the problem and the problem itself was a nice brain puzzle. I managed to solve this with Java and GoLang
This is the problem description:
You are given a matrix A consisting of N rows and M columns, where each cell contains a digit. Your task is to find a continuous sequence of neighbouring cells, starting in the top-left corner and ending in the bottom-right corner (going only down and right), that creates the biggest possible integer by concatenation of digits on the path. By neighbouring cells we mean cells that have exactly one common side.Read More »
It’s been a while since I took my last challenge on Codility and this was the first one I did in 2019. I felt a little bit rusty but it was a great weekend algorithm challenge. I managed to do 100% points on correctness and performance which is awarded with a Golden Award.
The challenge was marked as hard but personally I didn’t felt like it was on the level of the hardest challenges on Codility.Read More »
This year I found myself to be very much interested into algorithm challenges and the format of Codility seemed most suitable for me. I did total of nine challenges this year and got nine Golden Awards.
Here are all of them listed and you can check all the solutions, certificates and blog articles. Feel free to ask me questions if you need additional explanation about some of the solutions.Read More »
In the last few months I didn’t have much spare time for writing posts on this blog or maybe I was just being lazy. But that doesn’t mean that nothing interesting was happening during this period. So the next few post will be some “retro” stuff from the previous months and I think deserve to be published here. This post will be about the “Digital Gold” Codility challenge.
I got a “Golden Award” for this solution so here are the details about the challenge task:
An old king wants to divide his kingdom between his two sons. He is well known for his justness and wisdom, and he plans to make a good use of both of these attributes while dividing his kingdom.Read More »
Farming is something that I want to do in the future, farming with using technology and robots and… but I’ll write about that in some other occasion. One of the latest Codility challenges was farmland sprinklers arrangement problem and finding an optimal way to do that. Besides that I got algorithm mind challenge this time I got inspiration and made me daydream about the possibilities in farming with using technology.
So here is what you need to do in order to help Joe the Farmer.
Joe the Farmer owns a square plot of farmland whose sides are of length N. The land is split into N rows and N columns of equal size, so that there are N2 identical square fields within the farmland. Read More »
Current Codility challenge is called Gallium 2018 and again I managed to make a solution that is awarded with a Golden Award. This one was a very interesting brain puzzle for me and it took me a white to figure it out.
The challenge ends tomorrow so if you like to try it by yourself these are the requirements.Read More »
Kate is a girl that was given a very nice birthday gift – three theater tickets. She can pick three performances in the next N days that she would like to attend. On the program, performances are named by integers. Every day, one performance is staged. Kate wants to choose three days (not necessarily consecutive) to go to the theater.
In how many ways can she use her tickets?
Briefly that was the task in the Zinc 2018 Challenge on the Codility platform, sixth challenge that was published this year and sixth Golden Award for my solution.Read More »