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 »
I always tend to use LINQ to SQL (L2S) in smaller projects rather than Entity Framework (EF), it’s more lightweight and provides faster development for projects of this scope. Of course, for more robust system I would go with EF because of the better control and the relations between the context objects. If you like to go more into details on this read this topic: L2S vs Ef.
Inheritance is much easier to implement in EF but it can also be done in L2S although in a not very clean way, at least not that I know of. Here I’ll show you how can you add a base class to the L2S entities that can be used for auditing, creating domain events or whatever behavior that you want to achieve across all entities.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 »
I don’t have that much of a free time but from the one I have I try to make the most of it, and I think that is very important to have quality hobbies. For some people that is crossword puzzles, for some is reading books, for me that is running and from this year I’m taking participation in Codility Coding Challenges as well.
In this post I would like to share my experience with the latest Codility challenge – Cuprum 2018. Read More »
This is the last one of the series I’ve planned about SignalR, this time I’ll demonstrate how can we migrate the SignalR system that we previously created to a self hosted server and in that way have a very light weight server application that will have all the functionalities that we need and nothing more than that. The point is to get the exact same behavior of the server as we had it when we build it with WebAPI2.
Photo Credit Code Project
In a case you missed the first two posts please review them here
Part1: SignalR, what is happening under the hood
Part 2: How to build chat server and client with SignalR and ASP.NET WebAPI 2Read More »