项目作者: yubowenok

项目描述 :
Chrome extension for competing in LeetCode contests
高级语言: JavaScript
项目地址: git://github.com/yubowenok/leet-compete.git
创建时间: 2017-02-26T08:08:12Z
项目社区:https://github.com/yubowenok/leet-compete

开源协议:MIT License

下载


Leet-Compete

Chrome extension for competing in LeetCode contests

This chrome extension parses the contest problem page and generates runnable template code with calls to the Solution class for local testing.
It supports batch testing on all available sample cases.
With the extension you no longer need to use the page’s “Run Code” button and suffer the long wait!

Supported Languages: C++

Leet-Compete on problem Longest Word in Dictionary through Deleting.

Leet-Compete Result

Usage

  • Goto the chrome extension page (chrome://extensions/) in the chrome settings.
  • Enable “Developer Mode”
  • Drag the crx file into the page and install the extension. Or “Load unpacked extension” and select the leet-compete source directory.

Note: You may modify the header-template.js to use your own C++ template headers.

Warning

The extension relies on parsing the sample <pre> and the solution code blocks.
However LeetCode does not have a uniform style in formatting sample input/output.
It is possible some problems have special formatting that results in the failure of this extension.
This extension has now only been tested on a very limited set of problems.
Use at your own risk!