Featured Post

Hello! and Greetings! Nice to see you on my blog.

 

11/01/2022

LeetCode Day 36

 I definitely had some revelations today. The theme for today is taking that extra step while practicing. Truly understanding whats going on, because thats how it sticks in your brain and thats how you learn.


To start off, the first problem went off to a speedy start, I knew the right way to code it 10 minutes in. It was awesome. However, my implementation had bugs. It seems that when passing in values that are mutable, the function can change those values such that those changes are displayed to the callers.


Ex.  

However! if the objects are immutable like (ints, floats, strings, tuples). Then the method creates a local name for that object, and it is now passed by value.

The second problem... was....really...tricky


It was about finding the minimum height tree. The fallacy I exhibited was not understanding the problem well enough. I should have spent more time up front, and working my way step by step to the solution. I didnt do horribly tho.






10/24/2022

Leetcode Day 35

 Today, I revisited an old problem that I wasn't able to complete before. This time I did really well. It was an insanely hard problem, but I did 80% of it. I think that if my python skills were a little better, I would have come really close to completing it. The problem was constructing binary trees with a list of its inorder traversed elements and preorder traversed elements. Something that I learned today was the keyword nonlocal in python. It allows an inner function to refer to a variable referenced by the outer function.


Here is my code.



10/16/2022

Leetcode Day 34

 My brain was not up to speed today. I think its the weekend effect. I did manage to complete two leetcode problems today. I completed the Partition Equal Subset Sum & String to Integer (atoi). I did really well on the partition equal subset sum. I was obsessed with finding the most optimal solution that I already came up with it and decided to dig deeper. I ended up using neetcode to find the solution, and he used the same solution I came up with😭😭😭. Dynamic programming is a different monster each leetcode problem. Find the recurrence relation first, before starting to code. Also, work backwards.


I used a lot of sudo code in this problem. (partition equal subset sum)

I should go over knapsack problem, and memoization in the future. Im too lazy today, but I will in the future.

Thats it for today!!!


10/01/2022

Leetcode Day 33

 Today I completed two problems. First time doing leetcode in two weeks. I decided to take a break because I sort of got an internship offer letter from a big company and wanted to chillax. Basically, I took it upon myself to relax from all my hard work. Anyways, today wasn't too bad. Ill post the solutions to both problems that I had below. One of the problems I had had such a small detail that would have decreased my time complexity so much. It was a really really really nitty gritty detail to miss.

981Time Based Key-Value Store



33Search in Rotated Sorted Array





9/28/2022

Made insane amount of progress in an hour

 Sometimes 1 hour of your work is the most crucial one. It's the one that has all the meat. In that one hour today, I fixed the voice commands, and got all the QR detection to work perfectly. It felt like getting the last two seater on the bus. It was like listening to kanye west. Pure bliss. I added all the voice commands to unity's mixed reality tool kit, and modified all my C# code to match with the voice commands. Once again, I promise I will have a huge blog post at the end explaining everything. But for now, this is all you get.


My expression after that 1 hour of progress: 








I want to talk about how much little information there is on the internet on the Hololens. I mean a simple task like QR detection took days. 67 hours to be exact. OK some of that was for exploring the hololens, exploring the project, and learning unity. But yk what I mean. Why is it so difficult? Man, I am glad to have this experience. I feel like I am going to learn so much about patience.

I outsourced and reached out.

 I wasn't getting anywhere with the project after fiddling with it for hours. I mean HOOURS. I ended up asking an XR export in my university and thank the lords because he helped so much. He deserves so much good karma for helping me for no money. He helped me parse through the project, and I was able to change the qr detection symbol. I know none of this makes sense, but I promise I will post a demo of everything at the end. I just can't right now because all of the files are in the XR lab lol.

Idk what i'm doing

 Imposter syndrome was really settling in. But I worked through it. I worked through it all. My task for this week is to change the qr symbol when it gets detected. And um... I got nowhere. But yk my understanding of the QR detection service itself was skyrocketing. I was getting a lot of low level knowledge of the program.