by Ben Rosenberg | About this site | Submit a solution

GitHub link

This site is a frontend to display the contents of a JSON file like this one, which contains submissions I've made to LeetCode.

The only file that changes on this site at all is the abovementioned JSON file. All other content is either static or generated dynamically using client-side JavaScript after pulling in that JSON file, which is explicitly served by nginx and allows Cross-Origin Resource Sharing (CORS) so that it can be referenced on this static site.

New submissions are added via an authenticated POST request to a CORS-whitelisted endpoint which updates the relevant JSON file.

Syntax highlighting is done using microlight.js.

Return to problem set overview by Ben Rosenberg is licensed under CC BY 4.0