As Tommy mentioned, “Spring is a loose term in these parts.” Today, it’s 64 degrees, and we can expect temperatures in the 70s later this week. On Saturday, it surprisingly snowed. I found it quite unexpected since they had forecasted rain, and suddenly we were greeted with snow! Since it was a winter storm, I guess it wasn’t unexpected. Fortunately, it wasn’t too severe, and most of it has melted by now. I’m hoping for consistently warm weather so I can start working on my desk!
I currently have a list of items I need for my desk, but right now, there’s only one item on it: a charging hub with USB-C connections. I mentioned this to Tommy, and he humorously pointed out that I need a desk first. So, once the weather decides to cooperate, I’ll be ready to set up my desk. My current one is creaking more than usual, but it’s still holding up.
I’m contemplating how to best organize my stationery. Currently, I use wire racks—specifically, rose-gold ones—to hold my items. However, I’m considering alternative options, such as wooden boxes or shelves for my desk. The wood would add a vintage charm, which I find appealing, but I also appreciate the minimalist aesthetic of the wire racks. I do have cabinet shelves that will go under my desk that will help with storage. I’d like to get the stationery I have in the closet and put it in the cabinet. Then I can clean out the closet later. I guess I will know more once I see my desk done. Then I can decide.
This past weekend was quite low-key for us. On Friday, Tommy and I worked out and chose to relax at home afterward. We had intended to work in the garage, but that plan fell through since the weather was rather chilly, making it unappealing. Saturday brought some snowfall, so we stuck to our workout and then spent some time on our computers. On Easter Sunday, we worked out in the morning and later visited a friend’s house to discuss our upcoming trip and do some gaming. Although we only played one game, we made some progress in our planning.
I didn’t get much reading done on “The Paris Apartment” over the weekend; I just wasn’t in the mood to dive into it. I’m curious about the role the apartment plays in the story. So far, it seems like the apartment could be set in any city, and the plot would still hold up. I’m looking forward to discovering its significance as I continue reading.
Additionally, I noticed that the library has “The Third Gilmore Girl,” which I’m eager to pick up. Although I usually avoid reading two books at once, I couldn’t resist after receiving the email about it. This memoir by Kelly Bishop, who portrayed Emily Gilmore on “Gilmore Girls,” also highlights her career on Broadway and in various films. Now, I’m juggling two books at the same time, but I believe I can finish both within the month-long loan period from the library.
I wrote in my planner, although I haven’t decorated it yet; I’ll get to that later. I’ve noted a few to-dos for the week. I didn’t include my therapy appointment on Wednesday since it’s on my digital calendar. I hesitated to write it down in case it gets canceled again! After all, I haven’t had a session in two weeks. Haha! I do know that he has a lot of new people and has to do intakes. So maybe my appointments just got moved around.
In today’s coding session, we are focused on reversing a linked list. Typically, a linked list only allows traversal in one direction. Our goal is to iterate through each node and reverse the direction of the ‘.next’ pointer so that it points to the previous node.
To achieve this, we will utilize three pointers. The first, ‘prev,’ will track the previous node and will start as null. The second pointer, ‘current,’ will represent the node we are currently visiting and will begin as the head of the list. Finally, we will use a third pointer, ‘next,’ to temporarily store the next node, ensuring we don’t lose our place during the traversal. So far, I have:
function reverseLinkedList(head) { let prev = null; let current = head; }
I believe I need to implement a loop, but I’m uncertain which type is best suited for my needs. It seems like a ‘while’ loop might be appropriate. The iterations would proceed as follows:
We start with:
head -> 1 -> 2 -> 3 -> null
1. First iteration:
- current = 1, next = 2
- Set 1.next = null (prev)
- Move prev = 1, current = 2
2. Second iteration:
- current = 2, next = 3
- Set 2.next = 1
- Move prev = 2, current = 3
3. Third iteration:
- current = 3, next = null
- Set 3.next = 2
- Move prev = 3, current = null
Now prev is pointing at the new head:
3 -> 2 -> 1 -> null
Now that I have the structure outlined, I need to determine if a ‘while’ loop is indeed the correct choice and how to properly write it. I’m going to make myself some matcha tea and do more reading on this.
I’m still struggling to figure out this code. I keep encountering errors, but I’ll continue working on it tomorrow. Sandy keeps jumping onto my desk and lying in front of the keyboard, and I’ve had to set her down a few times already. My desk creaks every time Sandy walks on it. I also need to start refilling the pill boxes. Additionally, I want to prepare Tommy’s lunch for tomorrow so that I won’t have to do it later. For dinner, we’re having pulled pork. Not sure we are having veggies. We don’t have any in the house right now.





