This repo contains LeetCode pattern solutions by JavaScript, Python and Golang with explanation.
If you need the test the JavaScript version:
Go to each folder and locate the script.js file, copy each snippet code by each LeetCode question
Paste the code in the script.js file under the main directory
Download a Live Server extension (you don't need to reload the page everytime you run the js code)
Or open the html with Chrome
Press "option command + j" to see the result in the console ;)
If you need the test the Python version:
Just copy the code in the target file and paste it into the main.py file in the root directory, and then type: 'python main.py' in the terminal under the root directory.
If you need the test the Golang version:
Just copy the code in the target file and paste it into the main.go file in the root directory, and then type: 'go run main.go' in the terminal under the root directory.