Skip to content

yf591/leetcode_problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My LeetCode Solutions

This repository contains my solutions to various LeetCode problems, organized by categories and topics.

🎯 Purpose

  • Practice algorithms and data structures
  • Improve problem-solving skills
  • Track progress on LeetCode problems
  • Build a comprehensive reference for coding interviews

💻 Languages Used

  • Python3 (Primary) - Algorithm problems
  • SQL - Database problems

📁 Repository Structure

Algorithm Problems

  • problem_list/ - Individual problems organized by problem number
  • leetcode_75/ - LeetCode Top Interview 75 questions organized by topic.
    • Array / String
    • Two Pointers
    • Sliding Window
    • Prefix Sum
    • Hash Map / Set
    • Stack
    • Queue
    • Linked List
    • Binary Tree - DFS
    • Binary Tree - BFS
    • Binary Search Tree
    • Graphs - DFS
    • Graphs - BFS
    • Heap / Priority Queue
    • Binary Search
    • Backtracking
    • DP - 1D
    • DP - Multidimensional
    • Bit Manipulation
    • Trie
    • Intervals
    • Monotonic Stack
  • top_interview_150/ - LeetCode Top Interview 150 questions organized by topic.
    • Array / String
    • Two Pointers
    • Sliding Window
    • Matrix
    • Hashmap
    • Intervals
    • Stack
    • Linked List
    • Binary Tree General
    • Binary Tree BFS
    • Binary Search Tree
    • Graph General
    • Graph BFS
    • Trie
    • Backtracking
    • Divide & Conquer
    • Kadane's Algorithm
    • Binary Search
    • Heap
    • Bit Manipulation
    • Math
    • 1D DP
    • Multidimensional DP

SQL Problems

  • sql/ - Database problems categorized by difficulty and topic.
    • Select - Basic SELECT queries
    • Basic Joins - JOIN operations
    • Advanced Select and Joins - Complex JOIN scenarios
    • Basic Aggregate Functions - COUNT, SUM, AVG, etc.
    • Sorting and Grouping - ORDER BY, GROUP BY, HAVING
    • Subqueries - Nested queries and complex analysis
    • Advanced String Functions & Regex - Text processing

🚀 How to Navigate

By Problem Type

  • Algorithm Practice: Browse problem_list/ for individual problems or top_interview_150/ by topic
  • SQL Practice: Explore sql/ directory organized by SQL concepts

By Difficulty

  • Each directory contains problems of mixed difficulties
  • Problem numbers indicate original LeetCode problem IDs

File Organization

  • Each problem includes:
    • Solution code with detailed comments
    • Problem statement and examples
    • README.md with explanation (for complex problems)

🛠️ Development Environment

  • Python 3.x with virtual environment (.venv/)
  • SQL solutions tested on MySQL/PostgreSQL
  • VS Code configuration included (.vscode/)

💡 Feel free to explore and learn from these solutions!

📝 Note: Solutions include detailed explanations and multiple approaches where applicable.

About

My solutions to LeetCode problems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages