Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

LordMoMA/Grokking-the-Coding-Interview---Patterns-for-Coding-Questions

Repository files navigation

Grokking-the-Coding-Interview---Patterns-for-Coding-Questions

This repo contains LeetCode pattern solutions by JavaScript, Python and Golang with explanation.

If you need the test the JavaScript version:

  1. :bowtie: Go to each folder and locate the script.js file, copy each snippet code by each LeetCode question
  2. :trollface: Paste the code in the script.js file under the main directory
  3. :godmode: Download a Live Server extension (you don't need to reload the page everytime you run the js code)
  4. :octocat: Or open the html with Chrome
  5. :shipit: 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.

AltStyle によって変換されたページ (->オリジナル) /