Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TooSchoolForCool/LeetCode-Search

An Alfred Workflow for searching algorithm problems in LeetCode with advanced options
https://github.com/TooSchoolForCool/LeetCode-Search

Last synced: about 2 months ago
JSON representation

An Alfred Workflow for searching algorithm problems in LeetCode with advanced options

Awesome Lists containing this project

README

        

# LeetCode Search for Alfred Workflow

![passing](https://img.shields.io/badge/build-passing-brightgreen.svg) ![version](https://img.shields.io/badge/version-1.0.1-brightgreen.svg) ![python](https://img.shields.io/badge/python-2.6%2C%202.7-blue.svg)

**LeetCode Search** is an [Alfred](https://www.alfredapp.com) Workflow plugin for searching algorithm problems in [LeetCode](https://leetcode.com) with custom options.

![demo](docs/demo.gif)

## 1. Download

You can download the latest version in [Github releases page](https://github.com/TooSchoolForCool/LeetCode-Search/releases/tag/1.0.0).

## 2. Usage

### 2.1 General Search

Try keyword `lc` for general search in LeetCode. Just simply enter your query. You can also enter `-e`, `-m` and `-h` to specify Easy, Medium and Hard problem.

Here is a simple example to search Hard problem with keyword *knapsack*

```
lc knapsack -h
```

### 2.2 Serach Topic

Try keyword `lct` for searching a specific Topic in LeetCode. Just type in some keywords and **LeetCode Search** will automatically suggests you some related topics.

*Note: These topics are pre-defined by LeetCode, if no related topic is matched, then a general search will be performed.*

Here is a simple example to search Medium problem in `tree` related topics.

![image-20180518213429177](docs/lct-tree-example.png)

You can also try some other keyword, like `search`, `string`, `dp`, or you can just enter the topic listed on the LeetCode, it works as well.

## Acknowledgement

This Alfred Workflow plugin is developed based on [deanishe/alfred-workflow](https://github.com/deanishe/alfred-workflow). Thanks for this great helper library.