About
AlgosLab is a place to learn data structures and algorithms by watching them work and then writing them yourself.
Who it is for
Students taking a first course in data structures and algorithms, and anyone preparing for one. The lessons start from loops and arrays and go up to graphs and dynamic programming. You need to know a little programming in one of the four languages.
Why it exists
Algorithms are easier to follow when you can see each step. A textbook shows the start and the end; a visualization shows what happens in between, and lets you go back one step when you lose the thread. Most material like this is only in English, so every page here also exists in Arabic.
How a lesson works
Each lesson has a short explanation and a problem to solve. 61 of the lessons, the ones where watching helps most, also have a visualization you can play, pause and step through, and most of those take your own input too.
How grading works
- When you submit, your code runs on a separate server in a locked-down container, against all of the problem's tests: the examples you can see and hidden ones. You need an account to submit.
- A test passes when your program exits without an error and its output matches the expected output exactly, after spaces and line breaks at the start and end are trimmed. Line breaks in the middle count.
- Each test has a time limit of a few seconds.
- If every test passes, you get the problem's points. Points are given once per problem: solving it again later adds nothing.
Points and the leaderboard
Harder problems are worth more points, and each problem shows its points next to it. The leaderboard lists everyone with at least one point, by points. People with the same points share a rank. It shows your name and points, and nothing else about you.
Who built it
AlgosLab is a student-built project. It is not a company or a school, and it has no paid plans.