A personal collection of LeetCode problem solutions implemented in Python, TypeScript and C#.
This repository contains my solutions to various LeetCode problems implemented in different programming languages including Python, TypeScript, C#, and potentially more languages in the future as I continue my journey in algorithmic problem-solving and coding interview preparation. Each solution represents my understanding of the problem and the approach taken to solve it.
Important Note: The presence of a problem solution in this repository does not indicate mastery of the underlying concepts. Rather, it reflects that I have studied various approaches, referenced other solutions, and worked to understand the logic and techniques applied. Each implementation here represents a learning milestone in my coding journey.
- Python 🐍
- TypeScript 📘
- C# 💎
├── python/
│ ├── easy/
│ ├── medium/
│ └── hard/
├── typescript/
│ ├── easy/
│ ├── medium/
│ └── hard/
├── csharp/
│ ├── easy/
│ ├── medium/
│ └── hard/
└── README.md
Solutions are organized by difficulty level:
- Easy: Fundamental problems focusing on basic algorithms and data structures
- Medium: More complex problems requiring deeper algorithmic thinking
- Hard: Advanced problems involving sophisticated algorithms and optimization
Only python files includes:
- Problem statement reference
- Clean, readable code implementation
- Approach explanation
- Time and space complexity analysis
Rest of the languages only contains the equivalent code implementation
This repository reflects a learning-focused approach where:
- Solutions are studied and understood rather than memorized
- Multiple approaches may be explored for a single problem
- Code is written for clarity and comprehension
- Each problem contributes to building algorithmic intuition
# Navigate to Python directory
cd python
# Run a specific solution
python3 problem_name.py
# Navigate to TypeScript directory
cd typescript
# Compile and run TypeScript file
npx ts-node problem_name.ts
# Or compile to JavaScript first
tsc problem_name.ts
node problem_name.js
# Navigate to C# directory
cd csharp
# Compile and run C# file
dotnet run problem_name.cs
# Or compile first
csc problem_name.cs
./problem_name.exe
Difficulty | Python | TypeScript | C# | Total |
---|---|---|---|---|
Easy | 11 | 11 | 11 | 33 |
Medium | 6 | 6 | 6 | 18 |
Hard | 1 | 1 | 1 | 3 |
Total | 18 | 18 | 18 | 54 |
This repository exists as a personal learning tool. Solutions may be inspired by or adapted from various online resources, discussions, and educational content. The goal is understanding and growth in algorithmic problem-solving skills.
Disclaimer: These solutions are for educational purposes and personal reference. They represent my understanding at the time of implementation and may not always be the most optimal approach.