I just followed the hints
https://anothercasualcoder.blogspot.com/2021/12/lc-hard-problem-follow-hints.html
[https://anothercasualcoder.blogspot.com/2021/12/lc-hard-problem-follow-hints.html](http://)
[]