Skip to content

This repo contains a collection of useful algorithms to help with leetcode preparation and general problem solving for programmers.

Notifications You must be signed in to change notification settings

Zajason/leetcode_algorithm_cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Algorithms in Python (with Jupyter Notebooks)

A curated collection of common algorithm patterns and problem-solving templates for LeetCode and technical interviews. Each algorithm is written in Python and explained in detail using Jupyter Notebooks with clear markdown cells and code examples.


📚 What You'll Find

This repository contains:

  • Well-documented .ipynb notebooks for each algorithm
  • Markdown cells explaining core concepts, use cases, and step-by-step logic
  • Python code cells implementing the algorithm, ready to use and modify
  • Clean, beginner-to-advanced explanations focused on real-world problem solving

✅ Topics Covered

  • Sliding Window
  • Two Pointers
  • Binary Search
  • Prefix Sum
  • Fast & Slow Pointers (Cycle Detection)
  • Backtracking
  • Union-Find (Disjoint Set)
  • BFS / DFS (Graph Traversals)
  • Topological Sort (Kahn’s Algorithm)
  • Heaps / Priority Queues
  • Dynamic Programming (Memoization & Tabulation)
  • 0/1 Knapsack
  • Longest Common Subsequence (LCS)
  • Longest Increasing Subsequence (LIS) ...and more coming soon!

🧠 Who Is This For?

  • Engineers preparing for interviews at FAANG & startups
  • CS students learning algorithm design
  • Anyone who prefers visual, interactive explanation through Jupyter notebooks

💻 How to Use

  1. Clone the repo:
git clone https://github.com/your-username/leetcode-algorithms-notebooks.git
  1. Open the notebooks with Jupyter:

  2. Start exploring! Each file is a self-contained lesson on one algorithm.

🙌 Contributing

Have a better implementation , idea or visualisation ? Feel free to fork and submit a pull request!


⭐️ Support

If you find this repo useful :

    • Star the repo to help others discover it
    
    • Share it with fellow coders

    • Follow me on github or Linkedin for updates

🧑‍💻 Author

Iason Daniil Zakynthinos Electrical & Computer Engineering student | Software & AI enthusiast

About

This repo contains a collection of useful algorithms to help with leetcode preparation and general problem solving for programmers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published