MCPcopy Create free account
hub / github.com/codedecks-in/LeetCode-Solutions

github.com/codedecks-in/LeetCode-Solutions @v2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0 ↗ · + Follow
454 symbols 618 edges 178 files 96 documented · 21% updated 30d agov2.0 · 2021-04-26★ 86814 open issues

Browse by type

Functions 283 Types & classes 171
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LeetCode-Solutions

LOC Stars Badge Forks Badge GitHub contributors

GitHub issues by-label


Language  License  contributions welcome Discord first-timers-only-friendly

Got stuck in a LeetCode question? This repository will help you by providing approach of solving the problems from LeetCode platform.

Contributors helped us in providing these Awesome solutions.

If you want to contribute, please create a Pull Request. If you are new to Github please check pull request procedure ---> PR process

Check out ---> Sample PR

  • There are new LeetCode questions every week. I'll keep updating for full summary and better solutions.
  • For more challenging problem solutions, you can also see our HackerRank-Solutions, ProjectEuler repositories.
  • Hope you enjoy the journey of learning data structures and algorithms.
  • Notes: "🔒" means your subscription of LeetCode premium membership is required for reading the question.

Don't forget to give us a 🌟 to support us.

Check out -> Learning Resources

Algorithms

Bit Manipulation

# Title Solution Time Space Difficulty Tag Tutorial
136 Single Number Java

Python

C++ | O(n) | O(1) | Easy | | Using XOR | | 137 | Single Number II | Python

C++ | O(n) | O(1) | Medium | | | | 260 | Single Number III | Python

C++ | O(n) | O(1) | Medium | | | | 476 | Number Complement | Java

C++ | O(1) | O(1) | Easy | | Tutorial | | 520 | Detect Capital Use | Python

C++ | O(n) | O(1) | Easy | | | | 1486 | XOR Operation in an Array | Java | O(n) | O(1) | Easy | | Using XOR |

<b><a href="#algorithms">⬆️ Back to Top</a></b>

Sort

# Title Solution Time Space Difficulty Tag Tutorial
973 K Closest Points to Origin C++ O(n) O(1) Medium
   <b><a href="#algorithms">⬆️ Back to Top</a></b>

Array

# Title Solution Time Space Difficulty Note Video Explaination
56 Merge Intervals Python O(nlogn) O(n) Medium Intervals
268 Missing Number Java O(n) O(1) Easy Array Tutorial
697 Degree of an Array Java O(n) O(n) Easy Array
1089 Duplicate Zeroes JavaScript O(n) O(n) Easy Array
1502 Can Make Arithmetic Progression From Sequence Java O(n) O(1) Easy Array
122 Best Time to buy and sell Stock II Python

C++ | O(N) | O(1) | Medium | Stocks | | | 119 | Pascal's Triangle II | Python | O(N^2) | O(K) | Easy | | | | 1480 | Running Sum of 1d Array | Java | O(N) | O(N) | Easy | Simple sum | | | 42 | Trapping Rain Water | Python | O(N^2) | O(N) | Hard | Array | | | 11 | Container with Most Water | Python | O(N) | O(N) | Medium | Array Two Pointers | | | 1134 🔒 | Armstrong Number | Java | O(N) | O(1) | Easy | | | | 1534 | Count Good Triplets | Python | O(N^3) | O(1) | Easy | | | | 1572 | Matrix Diagonal Sum | Java | O(N) | O(1) | Easy | | | | 811 | Subdomain Visit Count

Core symbols most depended-on inside this repo

Shape

Method 267
Class 171
Function 16

Languages

Java40%
C++35%
Python22%
TypeScript3%

Modules by API surface

Java/design-circular-deque.java10 symbols
Python/LRUCache.py9 symbols
C++/Sudoku-Solver.cpp9 symbols
Python/622-Design-Circular-Queue.py8 symbols
Java/LRU-Cache.java7 symbols
C++/LRU-Cache.cpp7 symbols
Java/graph_connectivity_with_threshold.java6 symbols
Java/Redundant-Connection/redundant-connection.java6 symbols
C++/Minimum-Number-of-Flips-to-Convert-Binary-Matrix-to-Zero-Matrix.cpp6 symbols
Java/Range-Sum-Query-Mutable.java5 symbols
Java/Design-a-Stack-With-Increment-Operation.java5 symbols
C++/Most-Stones-Removed-with-Same-Row-or-Column.cpp5 symbols

For agents

$ claude mcp add LeetCode-Solutions \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page