Another fun way to learn this is to make your own rogue like game. There is a great online community of people who help each other building rogue like games. You learn a lot of interesting ways to think about algorithms/data structures by doing that. And it is fun!