Here’s the full text of the code from Episode 05. This is coded in JavaScript and uses the common approach of using a stack to keep track of the open rectangles.
https://gist.github.com/jacksongabbard/9cc21485c5e02d145203fa28651f42c4.js
Here’s the full text of the code from Episode 05. This is coded in JavaScript and uses the common approach of using a stack to keep track of the open rectangles.
https://gist.github.com/jacksongabbard/9cc21485c5e02d145203fa28651f42c4.js
The link should be https://gist.github.com/jacksongabbard/9cc21485c5e02d145203fa28651f42c4 🙂