Skip to content

🧩📘 Solve technical interview problems from Project Euler, Reddit's r/dailyprogrammer, and CodingBat in Visual Studio Code. Built on Fastify.

License

Notifications You must be signed in to change notification settings

michaelfromyeg/vscode-puzzles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-puzzles 🧩🧠

Puzzles allows you to sharpen your coding skills inside of your tailored Visual Studio Code environment and add your own tests.


Solve problems from Reddit's r/dailyprogrammer, Project Euler, and CodingBat in a fully-featured IDE, rather than a <textarea /> (ugh), and write custom test cases, akin to a real job interview... which is the whole point of your practice anyway!

Use Puzzles to prepare for technical interviews and start solving coding problems like you would in actual interviews today!

See how quickly you can get coding!

Puzzles demo

Want to practice LeetCode specifically? Check out this extension instead! It should be what you're after... though Puzzles likely can help you as well!

Like this project? Leave a review here or a star on GitHub.

Getting Started

Here's how to build Puzzles into your daily coding practice routine.

  1. Download this extension!

  2. Create a folder for your solutions

    # For example...
    cd ~
    mkdir puzzles
    cd puzzles
    code .
    
  3. Hit CTRL + SHIFT + P, type puzzles and select your problem of choice

  4. Get to solving!

  5. (Optional) Initialize a Git repository in your new folder and publish your work to GitHub!

See this in practice (and code along with me) here!

Features

As mentioned, Puzzles currently supports problems from r/dailyprogrammer, ProjectEuler, and CodingBat. It fetches a random problem for any of those three sites, creates a folder, and stores both a markdown file with the problem description and creates a .py file for you to begin your solution.

An outline of planned features is below!

Roadmap

Here's my plan for near-future development:

  • Support other programming language starters
  • Make starters better. Include unit test templates, for example
  • Support CTCI problems
  • Create a custom, curated list of coding problems to use for this extension

Requirements

None required! Note that Puzzles does create fodlers and files though, so you'll likely want to create a separate workspace on your computer for your work.

Extension Settings

In the future, there will be an option to set your preferred solving language.

Known Issues

Currently, the extension is a bit... shaky. There is a plan to stop scraping soon and add a better data source. If you experience any issues at all, open an issue or reach out via email for support!

Release Notes

This project was originally being part at Microsoft's VS Code hack-a-thon. It is actively under early development; if you're interested in helping grow this project, please file a ticket or open a pull request!

1.1.0

New features:

  • Documentation overhaul and renaming from vscode-puzzle -> Puzzles
  • Get a random problem from Project Euler, or select a specific problem number (#13)

1.0.0

Initial release for Microsoft's VS Code Hack-a-thon, sponsored by MLH.

Supported:

  • Problems from Reddit's r/dailyprogrammer, accessed via the Reddit API
  • Problems from Project Euler
  • Problems from CodingBat
  • The problem statement formatted into a Markdown file
  • A pre-generated Python file for your solution