I didn't even know where to start when I saw this.🥲🥲
Used some description from solutions to solve this, why does this question have no hints ? ? ? 😜😜😜
My first approach was to literally create a valid bracket string to avoid double counting bad matches but it gave TLE and after some thought, I ended up with this.
Today I can't do it alone! 🥲😅
I am bad and fairly new to the concept of graphs and this question is too much.
After reading this well-explained solution:
I understand what happened but there is no way I can code it myself. 😥
This Floyd Warshall's algorithm is surprisingly useful.🤔🤔
Since we have only 26 letters we can use it to pre-calculate costs and cut them to a minimum.
🫠
Nice one!!😜😜
This one is a continuous subset search with optimization.
Getting the sum in every iteration is slower than keeping the remaining number.
Some awesome guy in the discussion suggested avoiding duplicates because they lead to the same subsets.
I just hard-coded it🫤😐
This leetcode is not enjoyable, it asks you to hard code everything that is in the description.
I am not surprised that people especially young teens do not like this site 🥲
I love this question! 😍
It was such fun doing this question, I tried to do it in one loop but this way was too hard, and still, I think this question is awesome to do.
Time well spent 🙂🙃🙂🙃
I am relatively new to graphs and this video is awesome:
🤠🤠
Floyd-Warshall's algorithm helped me with today's leetcode daily and thanks to that video I solved it.
Holy it's been a while since I worked with unforgiving language. 😂
This is my first encounter with rust and I like it, the compiler gives a clear explanation of why the error occurred and you have a lot of power over allocating memory.
Expect more rust tweets. 🫠
Conway's Game of Life 🌱
It is completely programmed in rust ! 🦀🦀
More and more I love this language. 😍
Posting the GitHub repository soon and maybe some YouTube video explaining it.
What do you think about that? ❓
It's too early for me to do hard graph questions : (
I looked through hints that told me nothing then discussion a little bit helped but not enough.🫤
I saw solutions that I practically do not understand I just need to do some easier graph questions to do this one.
😶