This repository contains solutions to various LeetCode problems implemented in C#. Each solution is organized by problem number, title, difficulty level, and includes a link to the code implementation. Many of the solutions are optimized for performance and readability, making them suitable for both learning and reference purposes. Whether you're preparing for coding interviews or just looking to improve your problem-solving skills, this repository is a valuable resource.
| # | Problem | Difficulty | Solution |
|---|---|---|---|
| 1 | Two Sum | Easy | Code |
| 2 | Add Two Numbers | Medium | Code |
| 3 | Longest Substring Without Repeating Characters | Medium | Code |
| 4 | Median of Two Sorted Arrays | Hard | Code |
| 36 | Valid Sudoku | Medium | Code |
| 42 | Trapping Rain Water | Hard | Code |
| 49 | Group Anagrams | Medium | Code |
| 104 | Maximum Depth of Binary Tree | Easy | Code |
| 217 | Contains Duplicate | Easy | Code |
| 226 | Invert Binary Tree | Easy | Code |
| 242 | Valid Anagram | Easy | Code |
| 271 | Encode and Decode Strings | Medium | Code |
| 347 | Top K Frequent Elements | Medium | Code |
| 543 | Diameter of Binary Tree | Easy | Code |
| 853 | Car Fleet | Medium | Code |