Trust me, invest your time on learning how to find cycles in a linked list and get a job in a FANG.
Pretty sure Leetcode subscription costs more than R$150 :) .
But yeah, if you are Donald Knuth, you can probably make more money in other places... if its important for you.