Data structures

A simple page explaining data structures using JavaScript

What is this?

This page was made for me to practice my knowledge in a bunch of things: Data structures, Headless WordPress, JAM-stack, serverless functions and styled components. I don’t know how you found it, but now that you’re here I hope you can use it to learn something as well <3

So you know: The content on this website is served from WordPress using it’s REST api, the interface is built using React/Next.js, the sorting algorithms are available as serverless functions, and the whole page is statically generated using Vercel.

Big-O

BigO is the notation used to compare an algorithms time and space complexity. Soon there will be a nice diagram here, visualizing it all. Until then, it’s just a picture of a hippo.

Test performance

Click the button below to test the performance of different sorting algorithm. The test will sort an array of 10000 random numbers, and report back the time it took for each.

Bubble Sort

Insertion Sort

Selection Sort