Skip to content

Repository files navigation

πŸš€ Coding Practice: LeetCode & Codeforces

This repository contains my practice and training solutions for algorithmic and data-structure problems from LeetCode and Codeforces.

The goal of this repository is to:

  • Strengthen problem-solving skills
  • Improve algorithmic thinking
  • Prepare for technical interviews
  • Practice writing clean, efficient, and readable code

πŸ“Œ Platforms Covered

  • LeetCode
  • Codeforces

🧠 Topics Practiced

  • Arrays & Strings
  • Hashing (Set / Dictionary)
  • Sorting & Searching
  • Two Pointers
  • Greedy Algorithms
  • Sliding Window
  • Basic Math Problems
  • Edge Case Handling
  • Time & Space Complexity Optimization

πŸ—‚οΈ Repository Structure

β”œβ”€β”€ leetcode/
β”‚ β”œβ”€β”€ arrays/
β”‚ β”œβ”€β”€ strings/
β”‚ β”œβ”€β”€ greedy/
β”‚ └── ...
β”‚
β”œβ”€β”€ codeforces/
β”‚ β”œβ”€β”€ beginner/
β”‚ β”œβ”€β”€ math/
β”‚ └── ...
β”‚
└── README.md

Each solution file typically includes:

  • Problem description (brief)
  • Approach explanation
  • Time and space complexity
  • Python implementation

πŸ§ͺ Example Problems

  • Best Time to Buy and Sell Stock
  • Helpful Maths
  • Boy or Girl
  • String Parsing & Sorting
  • Distinct Character Counting

βš™οΈ Languages Used

  • Python (primary)

πŸ“ˆ Complexity Focus

For each problem, special attention is given to:

  • Optimized solutions (O(n), O(log n) when possible)
  • Comparison with brute-force approaches
  • Handling edge cases correctly

🎯 Purpose

This repository is meant for:

  • Daily coding practice
  • Interview preparation
  • Revisiting core concepts
  • Tracking personal progress over time

πŸ“ Notes

  • Solutions are written for clarity first, then optimized.
  • Some problems may have multiple approaches (naive vs optimal).
  • Code may be refactored over time as understanding improves.

πŸ“¬ Feedback

Suggestions, improvements, or alternative approaches are always welcome.

Happy coding! πŸ’»πŸ”₯

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages