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

https://github.com/silenceoverflow/leetcode_solutions_in_cpp

LeetCode Solutions Implemented in C++ and Notes on Algorithms and Data Structures
https://github.com/silenceoverflow/leetcode_solutions_in_cpp

algorithms-and-data-structures leetcode-solutions

Last synced: 5 months ago
JSON representation

LeetCode Solutions Implemented in C++ and Notes on Algorithms and Data Structures

Awesome Lists containing this project

README

        

LeetCode Solutions - Implemented in ![Language](https://img.shields.io/badge/language-CPP-blue.svg)

# Current Updating
If you think this repo is useful, please ***watch***, ***star*** or ***fork*** it!

## About LeetCode

LeetCode Online Judge is a platform for preparing technical coding interviews and assessing your knowledge of data structures and algorithms. Here is the problem list - [LeetCode](https://leetcode.com/problemset/algorithms/).

One problem each day. / 日拱一卒 (in Chinese)

## Tags
Tags are arranged in alphabetical order, while in each category, orders are arranged in numerical order.

* [Array](https://github.com/YoujieXia/LeetCode_Solutions_in_CPP#array)
* [Backtracking](https://github.com/YoujieXia/LeetCode_Solutions_in_CPP#backtracking)
* [Bit Manipulation](https://github.com/YoujieXia/LeetCode_Solutions_in_CPP#bit-manipulation)
* [Greedy](https://github.com/YoujieXia/LeetCode_Solutions_in_CPP#Greedy)
* [Queue](https://github.com/YoujieXia/LeetCode_Solutions_in_CPP#Queue)

## Array

| Order | Title | Analysis | Solution | Time | Space | Difficulty | Runtime | Beats |
|:-----:|---------------- | :---------: | :-------------: | --------------- | :-------------: | :-------------: | :-------------: | :-------------: |
| 078 | Subsets | [Markdown](./md/078-subsets.md) | [C++](./cpp/078-subsets.cpp) | O(n * 2^n) | O(1) | Medium | 6 ms | 12.97% |
| 621 | Task Scheduler | [Markdown](./md/621-task_scheduler.md) | [C++](./cpp/621-task_scheduler.cpp) | O(n) | O(26)/O(1) | Medium | 46 ms | 95.31% |

## Backtracking

| Order | Title | Analysis | Solution | Time | Space | Difficulty | Runtime | Beats |
|:-----:|---------------- | :---------: | :-------------: | --------------- | :-------------: | :-------------: | :-------------: | :-------------: |
| 078 | Subsets | [Markdown](./md/078-subsets.md) | [C++](./cpp/078-subsets.cpp) | O(n * 2^n) | O(1) | Medium | 6 ms | 12.97% |

## Bit Manipulation

| Order | Title | Analysis | Solution | Time | Space | Difficulty | Runtime | Beats |
|:-----:|---------------- | :---------: | :-------------: | --------------- | :-------------: | :-------------: | :-------------: | :-------------: |
| 078 | Subsets | [Markdown](./md/078-subsets.md) | [C++](./cpp/078-subsets.cpp) | O(n * 2^n) | O(1) | Medium | 6 ms | 12.97% |

## Greedy

| Order | Title | Analysis | Solution | Time | Space | Difficulty | Runtime | Beats |
|:-----:|---------------- | :---------: | :-------------: | --------------- | :-------------: | :-------------: | :-------------: | :-------------: |
| 621 | Task Scheduler | [Markdown](./md/621-task_scheduler.md) | [C++](./cpp/621-task_scheduler.cpp) | O(n) | O(26)/O(1) | Medium | 46 ms | 95.31% |
## Queue

| Order | Title | Analysis | Solution | Time | Space | Difficulty | Runtime | Beats |
|:-----:|---------------- | :---------: | :-------------: | --------------- | :-------------: | :-------------: | :-------------: | :-------------: |
| 621 | Task Scheduler | [Markdown](./md/621-task_scheduler.md) | [C++](./cpp/621-task_scheduler.cpp) | O(n) | O(26)/O(1) | Medium | 46 ms | 95.31% |

## To Do
- [x] add corresponding `.cpp` files
- [x] add links to each problem page

## License
[MIT](License)