Equalize the Array

It seems like it is going to be a nice day in the Twin Cities of Minneapolis and St. Paul. The sun is shining and the forecast calls for a high in the mid 60s. If it remains dry my wife and I will go for a walk around 05:00 PM. Looking forward to a walk to burn some calories gained over the weekend. Continue reading “Equalize the Array”

Singleton Pattern

It is a humid, cloudy and rainy day the Twin Cities of Minneapolis and St. Paul. Probably the only redeeming feature is that the Final Four is being played at the US Bank Stadium in Minneapolis. There are several streets closed in Minneapolis. Yesterday in the evening news you could see the amount of people eating, buying memorabilia, watching concerts, even riding a Ferris wheel built at a street intersection. It seemed that people were having lots of fun.

Yesterday morning I woke up shortly before 04:00 AM. I wanted to check on some tests running on a couple computers at home and had to write some documentation. I just got up and finished the tasks in the first 2-hour block of the day. Woke up my wife and had breakfast. She had plans with a friend to go shopping early morning. They were back around noon. We ended up having hotdogs for lunch, but what is most important, they had fun. Continue reading “Singleton Pattern”

Repeated String

A day or so ago I read a post on the Financial Times titled “How the Modern Office is Killing Our Creativity”. This is nothing new but seems that most people do not wish to understand the consequences and apply changes to improve. This specially holds for the CEO down to the project managers.

Since I can remember, I have always tried to set a reminder of what I need to achieve in a specified time period. In some cases I write down the set of tasks. In others I just repeat a set of memorized steps. One way or the other, if possible I perform the tasks in solitude. Of course there are some tasks that need to be performed with others (e.g., consultation regarding an issue, ideas if I get stuck, help team members when they need it). Continue reading “Repeated String”

Can You Access?

Today is going to be the warmest day of the year so far. Forecasts are calling for a high in the mid to upper 60’s. Hopefully the warmer weather will help the remaining snow melt. I would guess that most people in this part of the country had enough snow for the year.

This morning I took a look at the Can You Access? HackerRank problem. The requirements are quite simple. You need to call a method with a parameter in a class that is two levels deep. Continue reading “Can You Access?”

Java Annotations

We all have seen and used annotations in Java. To be honest I have never before created my own annotation. From now on, when the opportunity arises, I will make sure to start adding my own annotations. To read more about the subject at hand, take a look at this page in Wikipedia.

To get a more in depth definition, you might look into this tutorial and the Oracle Java docs. Continue reading “Java Annotations”

Java MD5

Good morning. I woke up around 04:30 AM. Read for a while and then decided to try the Java MD5 challenge from HackerRank.

MD5 is a message-digest algorithm used to produce the same 16-byte string when using the same string. The input string is typically converted to bytes using a predefined format. This is done because we want the same digest to be produced when we input the same string. Continue reading “Java MD5”

Java Dequeue

It is a relatively warm day in the Twin Cities of Minneapolis and St. Paul. My son tweeted an hour or so ago that the temperature by his place was 46F. Not a day to wear swim trunks and T-shirts but a very welcomed change.

I was going to clean up the code for this post but I have a Docker webinar to watch soon.

The subject for this post is the Java Dequeue (https://www.hackerrank.com/challenges/java-dequeue/problem) challenge from HackerRank. It is a mix of double ended (doubly linked) queue and hash map. Continue reading “Java Dequeue”

Java Stack

It is Tuesday morning and woke up a few seconds before my alarm went off. Did some reading and decided to give Java Stack from HackerRank a try. I am quite sure I have solved this same challenge with a different name in this or a different platform. I am working on some medium level stuff and when tired will jump up to the next level. Continue reading “Java Stack”

Java BigDecimal

It is Monday. It is a beautiful sunny day in the Twin Cities Area. All is well so far.

I picked up the next Java challenge Java BigDecimal from HackerRank.

The challenge requires for one to sort in descending order a specified set of numbers provided as strings. You can read the entire description at the HackerRank web site. Continue reading “Java BigDecimal”