I've been trying to wrap my head around DSA. My problem is that most courses explain you the idea behind them, maybe give you a small example but I've seen none that explain both the theory and how to implement one.
Started trying to write a linked list to see if I understood it properly but I'm pretty confident that my time complexity for insert_at and insert_last are O(n) rather than O(1).
https://paste.pythondiscord.com/BJ4Q
Really feel like I'm missing something important about how I should be learning DSA.