Find Minimum in Rotated Sorted Array

It seems we are having another nice spring day in the Twin Cities of Minneapolis and St. Paul. The sun is shining and the temperature is forecasted to reach the low 60s. On Saturday we are expecting high in the low 80s. That will be a record day. Will see when it arrives.

My wife and I are planning on grilling on Saturday and Sunday. For one reason and the other we have not enjoyed an “adult beverage” in a couple months. Grilling steaks while having a beer or two on a sunny and warm day is something worthwhile to do on a weekend. Will provide more info on Sunday if I am able to complete a problem and post it. Continue reading “Find Minimum in Rotated Sorted Array”

Add Two Numbers – Revisited

It is Wednesday morning in the Twin Cities of Minneapolis and St. Paul. The temperature should go up to 60F. The forecast for this Saturday calls for 80F. It seems that Saturday will be a great day for grilling some steaks. Our freezers at home are currently full with chicken and pork. The mix changes during the short summer months when we tend to favor beef. My wife suggested for us to stop by Costco in Minneapolis Saturday to see which beef cuts are available. We ill just get enough for the day. Continue reading “Add Two Numbers – Revisited”

String to Integer – Revisited

It is another gloomy day in the Twin Cities of Minneapolis and St. Paul. So far is has been raining on and off. The temperature has risen to the mid to upper 50’s. We are still in April so not much to complaint about yet.

I am working on a set of problems at LeetCode. Some I have already solved while others not. In the case of LeetCode 8 String to Integer (atoi) I had solved it as you can see here.

At the time the answer was good enough so I left it there. Since I am giving myself a second chance, I decided to work on a third implementation of the required function. Continue reading “String to Integer – Revisited”

Single Number

It is a Monday. Things are going well for me; hope the same for you.

I decided to tackle the next problem in a list at LeetCode. The problem is LeetCode 136 Single Number. Not sure if problems change with time so if interested please visit the LeetCode site and get the requirements directly from them. Continue reading “Single Number”

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”

Producer and Consumer – Part 3

It is Friday once again. The cleaning crew is at home. I have been listening to the vacuum for a few hours. They should be done shortly.

I have to get a COVID-19 test this afternoon. On Monday I will be having a procedure and the clinic requires a COVID test in the past 72 hours no matter if you have already received the complete doze of a vaccine. I was going to get this procedure done a couple years ago, but with some travelling plans and then COVID did not have an opportunity to get it done.

Today I suggested to my wife if we could have Asian from Trader Joe’s for lunch. She suggested noodles with an Italian sauce we fixed last week. We were able to fill five one-pint containers and put them in the outside freezer. The sauce turned out very good. We made it last Saturday when my wife’s brother and wife had lunch with us. We used a few pounds of chuck and Italian pureed tomatoes. Hopefully the cleaning crew will leave soon so we can have an early lunch. Continue reading “Producer and Consumer – Part 3”

Remove Duplicates from Sorted Array in Java

Good day. Hope you are doing well. Seems like many companies, businesses and schools are starting to plan on how to conduct business after the COVID-19 pandemic in the USA. It seems like we are getting closer to be able to return to a new normal. I believe that use of masks in public will be required until we achieve herd immunity in different locations. Hope the same is happening in your neck of the woods. Continue reading “Remove Duplicates from Sorted Array in Java”

Letter Combinations of a Phone Number

Today is somewhat colder than yesterday in the Twin Cities of Minneapolis and St. Paul. It seems that we weekend will be quite a bit warmer than the rest of the week. This Sunday is Easter. It should be a nice day if you celebrate the holiday.

Earlier my wife went to get her hair done. Last week she got it cut for the first time since the COVID-19 pandemic started. It is amazing how the past year or so have gone by. Continue reading “Letter Combinations of a Phone Number”

Producer and Consumer – Part 2

Yesterday the temperature in the Twin Cities of Minneapolis and St. Paul reached 72F which is quite pleasant for this time of the year. Today we are expecting 42F for a high. That is a drop of 30F! At least the day is forecasted to be sunny.

I also received a message from Gleves48061@hotmail.com regarding my post Revenue Milestones in Java. Not sure what it was all about so I will not comment on it at this time. If I could get an updated comment, I will review and reply as needed. Thanks. Continue reading “Producer and Consumer – Part 2”

Maximum Score of a Good Subarray

Good morning. Hope your day has started on the right note. If you follow this blog you have noticed that I recommend social distancing in order to reduce the chances of COVID-19 to spread in your local community. My wife and I wear a mask when we go shopping. As soon as we return to our vehicle we remove the mask and apply had sanitizer to our hands. We are planning to continue this behavior for the foreseeable future.

My wife has been to the Mall of America a couple times during the pandemic. She and a friend have not been shopping but walking. On each occasion my wife told me that the mall was almost empty with many stores closed. That is a shame. Continue reading “Maximum Score of a Good Subarray”