Khan / khan-windows

Khan Academy for Windows 8
31 stars 15 forks source link

Make topic tree parsing recursive to support arbitrary hierarchy levels #85

Open bbondy opened 11 years ago

bbondy commented 11 years ago

Currently the topic tree parsing code is just a bunch of nested for loops, I think supporting a few levels deep only. We should make this parsing algorithm recursive so it supports any number of levels.

image

Displayed in the image is a topic that has 2 sub-topics, but we don't display them.