mirror of
https://github.com/arkorty/LeetCode.git
synced 2026-03-17 16:51:46 +00:00
master
LeetCode Solutions
This repository contains my solutions to various LeetCode problems in C++, Java, and Go. The solutions are organized by difficulty level (Easy, Medium, Hard).
Table of Contents
Easy Problems
| Problem | Solutions | LeetCode Link |
|---|---|---|
| Add Binary | C++ | Problem |
| Best Time to Buy and Sell Stock | C++ | Problem |
| Binary Tree Inorder Traversal | C++ | Problem |
| Binary Tree Postorder Traversal | C++ | Problem |
| Binary Tree Preorder Traversal | C++ | Problem |
| Climbing Stairs | C++ | Problem |
| Contains Duplicate | C++ | Problem |
| Contains Duplicate II | C++ | Problem |
| Excel Sheet Column Number | Java | Problem |
| Excel Sheet Column Title | Java | Problem |
| First Unique Character in a String | C++ | Problem |
| Implement Queue using Stacks | C++ | Problem |
| Implement strStr() | C++ | Problem |
| Intersection of Two Arrays II | C++ | Problem |
| Invert Binary Tree | C++ | Problem |
| Linked List Cycle | C++ | Problem |
| Longest Common Prefix | Java | Problem |
| Maximum Depth of Binary Tree | C++ | Problem |
| Maximum Number of Words You Can Type | Java | Problem |
| Maximum Subarray | C++ | Problem |
| Merge Sorted Array | C++ | Problem |
| Merge Two Sorted Lists | C++ | Problem |
| Minimum Depth of Binary Tree | C++ | Problem |
| Palindrome Number | C, C++ | Problem |
| Pascal's Triangle | C++ | Problem |
| Path Sum | C++ | Problem |
| Plus One | C++ | Problem |
| Ransom Note | C++ | Problem |
| Remove Duplicates from Sorted Array | C++, Java | Problem |
| Remove Duplicates from Sorted List | C++ | Problem |
| Remove Linked List Elements | C++ | Problem |
| Repeated Substring Pattern | C++ | Problem |
| Reshape the Matrix | C++ | Problem |
| Reverse Bits | C++ | Problem |
| Reverse Linked List | C++ | Problem |
| Roman to Integer | Java | Problem |
| Same Tree | C++ | Problem |
| Search in a Binary Search Tree | C++ | Problem |
| Search Insert Position | C++ | Problem |
| Shuffle String | C++ | Problem |
| Sqrt(x) | C++ | Problem |
| Symmetric Tree | C++ | Problem |
| Transpose Matrix | C++ | Problem |
| Two Sum | C++, Java | Problem |
| Valid Anagram | C++ | Problem |
| Valid Palindrome | Java | Problem |
| Valid Parentheses | C++ | Problem |
Medium Problems
| Problem | Solutions | LeetCode Link |
|---|---|---|
| Add Two Numbers | Java | Problem |
| Binary Tree Level Order Traversal | C++ | Problem |
| Container With Most Water | C++ | Problem |
| Equal Row and Column Pairs | C++ | Problem |
| Insert into a Binary Search Tree | C++ | Problem |
| Letter Combinations of a Phone Number | C++ | Problem |
| Longest Palindromic Substring | C++, Java | Problem |
| Remove Nth Node From End of List | Go | Problem |
| Reverse Integer | Java | Problem |
| Search a 2D Matrix | C++ | Problem |
| Single Element in a Sorted Array | Java | Problem |
| Sort List | C | Problem |
| String to Integer (atoi) | C++ | Problem |
| Two Sum II - Input Array Is Sorted | C++ | Problem |
| Valid Sudoku | C++ | Problem |
| Validate Binary Search Tree | C++ | Problem |
| Zigzag Conversion | Java | Problem |
Hard Problems
| Problem | Solutions | LeetCode Link |
|---|---|---|
| Longest Cycle in a Graph | Java | Problem |
| Longest Valid Parentheses | C++, Java | Problem |
| Sudoku Solver | C++, Java | Problem |
License
This project is licensed under the terms of the MIT license.
Languages
C++
77.7%
Java
19.5%
C
2%
Go
0.8%