REPOSITORY OVERVIEWLive repository statistics
★ 283Stars
⑂ 111Forks
◯ 2Open issues
◉ 283Watchers
71/100
OPENREPOHUB HEALTH SIGNALHealthy signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
100 Community adoption25% weight
50 Maintenance state20% weight
100 License clarity10% weight
0 Project information10% weight
35 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
LeetCode-Topicwise-Solutions
My solutions to algorithmic problems in leetcode written in C++ and Python
What you can find in this repository
I have solved quite a number of problems from several topics. See the below table for further details.
How to contribute?
- Fork the repository
- Do the desired changes (add/delete/modify)
- Make a pull request
When to contribute?
- If there is no solution to a problem in the main branch.
- If your solution is asymptotically faster than the one in the main branch.
- If your algorithm is of the same time complexity but with reduced code size. In this case, comment out the original solution and make a pull request with your solution.
- If you have another method of solving the problem which is asymptotically slower than the original method then, comment your solution in the main file and make a pull request.
What I'll be doing with this repository
One day in the foreseeable future I will have solved all the challenges on leetcode.
Then this repository will mostly become a static one.
Constructive criticisms or code reviews of any kind are very much welcome.
If you have any questions about the solutions you can find here, feel free to contact me abhisheksharma.0517@gmail.com.
Algorithms
Database
Shell
Reference
- C++
- Python
- Algorithms
- Math
- Visualization
- Handy Table
| n | Complexity | Possible Algorithms & Techniques |
|---|
| 1018+ | O(1) | Math |
| 1018 | O(logn) | Binary & Ternary Search / Matrix Power / Cycle Tricks / Big Simulation Steps / Values Reranking / Math |
| 1016 | O(n1/2) | Math |
| 108 | O(n) | Greedy / Ad-hoc / DP |
| 4×107 | O(nlogn) | Linear # Calls to Binary & Ternary Search / Pre-processing & Querying / Divide and Conquer |
| 104 | O(n2) | Ad-hoc / DP / Greedy / Divide and Conquer / Branch and Bound |
| 500 | O(n3) | Ad-hoc / DP / Greedy / Divide and Conquer / Branch and Bound |
| 90 | O(n4) | Ad-hoc / DP / Greedy / Divide and Conquer / Branch and Bound |
| 50 | O(n5) | Branch and Bound |
| 40 | O(n×2n/2) | Meet in the Middle |
| 20 | O(n×2n) | Backtracking / Generating 2n Subsets / Bitmask Technique |
| 11 | O(n!) | Factorial / Permutation / Combination Algorithm |
Bit Manipulation
Array
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
This repository contains the solutions and explanations to the algorithm problems on LeetCode. Only medium or above are included. All are written in C++/Python and implemented by myself. The problems attempted multiple times are labelled with hyperlinks.
80/100 healthRecently updatedActive repository
C++No license#algorithms#cpp#leetcode
⑂ 1.3K forks◯ 6 issuesUpdated 1 day ago
The repository contains Google's robots.txt parser and matcher as a C++ library (compliant to C++11).
86/100 healthRecently updatedActive repository
C++Apache-2.0
⑂ 252 forks◯ 12 issuesUpdated 2 days ago
This repository contains full code examples from the book Gray Hat C#
/100 health