Longest Palindromic Substring

Good day! Hope your day has started on the right note. The days are getting shorter. Every morning after breakfast my wife and I head out for a 2.5 mile walk. We are leaving home a few minutes before 07:00 AM because earlier is dark. We prefer walking with day light. Continue reading “Longest Palindromic Substring”

How Sum

Once again it is Friday in the Twin Cities of Minneapolis and St. Paul. This coming weekend is Memorial Day 2021. My wife and I will be heading out after work to visit our younger son. It is about a three-hour drive. Today in the Twin Cities is rather cold. As we reach our destination it might be raining. At least that is what the weather forecast call for today. While driving the temperature is not much of a concern. Rain on the highway is OK as long as we do not encounter thunderstorms. Yesterday evening we filled up the SUV so we are ready to leave at the end of the workday today.

I kept on watching the Dynamic Programming – Learn to Solve Algorithmic Problems & Coding Challenges video on YouTube. I am around the 2nd hour into the video and to be honest with you I am enjoying it.

My wife and I drove back after spending a couple days with our son and family. We have not visit with them in person for the past year and a half. The boys are growing like weeds. We are planning on visiting them before the yearend holidays. They are planning on a trip with friends around Christmas 2021.

On a side note my Pixel 4 cell phone died again while we were out of town. Tried pressing and holding the different buttons but nothing happened. Back home, I tried charging the phone for an hour or so to get some juice in the battery. After repeating the process the phone continues to be dead. Today we have other plans. Will stop by T-Mobile tomorrow and see if they can revive the phone once again. The issue appears to be battery related. Now a day who knows? It might be a virus. One way of the other we are done with Google phones. We are moving to Apple. Will let you know my first impressions as soon as I get the new phone configured to a point I can have what I consider basic configuration. Continue reading “How Sum”

Grid Traveler or Unique Paths

The weather is acting somewhat erratic. Today the forecasted high in the Twin Cities of Minneapolis and St. Paul will be 20F lower than yesterday. Tomorrow it should be 10F lower than today and should be raining. The water level in pond in my backyard is very low. Some rain should help. I noticed that a couple of cranes have made their home for summer the pond. Not sure if they are the same that return every year or they are an offspring of the ones from last year. I do not know much about cranes.

Since the weather will be nice today; my wife and I will go for a walk after the end of the workday. Not sure what we will do tomorrow. Perhaps we will go to the Mall of America.

On a different note, as you might know, I work in 2-hour blocks. After each block I go up and get something to drink. A few minutes later I head back to work. A few weeks ago I moved a stationary bike from a utility room and set it up in the lower level living room. I started biking for 5 minutes after completing a 2-hour block. That is working very well. I get between 20 to 25 minutes biking each workday. Since the bike is indoors I can do it year round. Continue reading “Grid Traveler or Unique Paths”

Efficient Graph Search

It is a spring Monday in the Twin Cities of Minneapolis and St. Paul. The weather forecast calls for humid and overcast day with the possibility of thunderstorms this afternoon. In general, I try to shutdown my computers at home as soon as I hear thunder. So far all is good. Hopefully the storms will start later in the day after my workday is over!

The weekend was rather nice. It was humid and warm. It seems that the weather has changed more than usual this year. In Lima Peru, there are no storms or any considerable rain. Apparently earlier today some lightning and associate thunder passed by the coastal city. As far as I know this is a first. Continue reading “Efficient Graph Search”

Movies on Flight

Good day! It is a Friday in the month of May. The forecast called for rain and thunderstorms. We only received some rain. It is good to have some rain because things were starting to dry up. When vegetation dries up it may catch on fire.

In this post I will attempt to solve two flavors of the same problem. I believe one can create a few more problems by changing just a few words in the requirement. This will become clear as we read the requirements and describe the differences.

I found this problem named Movies on Flight in the LeetCode web site. Apparently Amazon has been using different versions on some of their technical assessments. Continue reading “Movies on Flight”

Generate Parentheses

For lunch my wife made a pork and cauliflower dish. She added a few drops of Green Dragon Hot Sauce. It goes very well with pork dishes. For desert we had gypsy arm filled in with dulce de leche with strawberries on the side. Lunch was quite good. After chatting for a few and doing the dishes and pots I got back to my home office. Continue reading “Generate Parentheses”

Longest Substring without Repeating Characters

Good day ladies and gentlemen. It is Monday and I am taking this week off from work. I have not taken enough days off so for health reasons I have to take of this week. That said, if I am called to solve and issue I will be available. I am spending the entire week at home.

Today my wife was preparing lunch. She noticed some zucchini in the refrigerator and decided to prepare them stuffed. It is funny that after my wife and I got married, she asked my mother for her recipe on several occasions. The reason is that at my parent’s house, when zucchini were in season they were the first plate for lunch at least once a week. I really liked them the way my Nona and mother prepared them. My mother did not pass on the recipe. Good thing that my wife and I cook. We are on our way to a better recipe. Will let you know when we achieve the goal. Continue reading “Longest Substring without Repeating Characters”

Producer and Consumer – Part 4

We are quickly approaching the end of another work week. In the Twin Cities of Minneapolis and St. Paul it appears that most businesses are back to normal. The only exception is that many office workers are still working from home and people is required to wear a mask when in public spaces. Most people that want to be vaccinated against COVID-19 have done so. We need to get most (never generalize) people to comply in order to achieve herd immunity.

This is the fourth installment of the sequence of posts related to a producer and consumer connected via TCP/IP. In this post we will not add functionality to the producer or consumer. We will explore some functions and methods that we have at our disposal when encrypting and decrypting files using the Advanced Encryption Standard. Continue reading “Producer and Consumer – Part 4”

Serialize and Deserialize BST

Good morning! I am back. A couple weeks ago I have a selective / optional procedure on my left knee. Once I decided to get it done I was not able to do so due to the COVID-19 pandemic. After two years it is done. I will not go into more details at this time. I need to get my right knee done in the next couple months. This whole thing started a few years ago with some incidents involving a car and later riding a motorcycle. Due to the fact that I will be having the same procedure in my right knee I decided not to get details from the surgeon or Google. After all is said and done I will get more details. That said, I chose the surgeon and facility by asking friends. That was a very good idea.

On a separate note, last week I read “Five things I have learned after solving 500 LeetCode questions” by Federico Mannucci. He is a Software Engineer in Italy, who loves traveling and cooking. Apparently we share some professional and personal interests. Continue reading “Serialize and Deserialize BST”

Analog Clock in JavaScript

It has been over a week since my last post. A lot of things have happened besides COVID-19. As you might know I live in a suburb in the Twin Cities of Minneapolis and St. Paul. I live in Dakota County. On May 24, 2020 the county had experienced 33 deaths due to the pandemic. Today is June 03, 2020 and the count is up to 59. The count is going up. It seems that a second wave has been forecasted by models for about June 15, 2020. As the rate things are going, I would not be surprised. Continue reading “Analog Clock in JavaScript”