Skip to content

PafsCocotte/leetcode

Repository files navigation

LeetCode Log

My LeetCode solutions and learning notes.

Summary of Solutions

  • Strategy: Two-pointer / Sliding Window.
  • Logic: The window size represents the smallest answer found during the search.
  • Note: Core logic is handwritten; main function and test cases were generated by AI (Gemini).
  • Strategy: Hash Set / Set Difference.
  • Languages Implemented:
    • C++: Used std::unordered_set (C++20 contains).
    • Python: Used set operators (-).
    • Go: Used map[int]bool to simulate a set.
    • Rust: Used HashSet and difference() method.
  • Key Concept: Leveraged each language's native set operations to achieve $O(N + M)$ time complexity.
  • Note: main functions for each language were generated by AI (Gemini).

About

My answer for leetcode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors