Skip to content

Latest commit

 

History

634 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🚀 LeetCode Solutions

A curated collection of my accepted LeetCode solutions, automatically synced to GitHub using my custom-built Chrome extension CodeHub Sync.

LeetCode Language Automation

Repo Size Last Commit Stars Visitors

LeetCode

📖 About

This repository contains my accepted solutions to LeetCode coding problems.

Every solution is automatically committed using my Chrome extension CodeHub Sync, making this repository a continuously updated archive of my coding interview preparation and Data Structures & Algorithms practice.


📂 Repository Structure

Each problem gets its own numbered folder inside Solutions/, named XXXX-problem-title.

LeetCode-Solutions/
│
├── Solutions/
│   ├── Java/                          # Java solutions
│   ├── Python/                        # Python solutions
│   │
│   ├── 0003-longest-substring-without-repeating-characters/
│   │   ├── README.md
│   │   └── 0003-longest-substring-without-repeating-characters.cpp
│   │
│   ├── 0007-reverse-integer/
│   │   ├── README.md
│   │   └── 0007-reverse-integer.cpp
│   │
│   └── ...                            # more numbered problem folders
│
├── README.md
└── stats.json

Each problem directory contains:

  • 📄 Problem description
  • 💻 Accepted solution
  • 🏷️ Problem metadata

⚙️ Automation Workflow

Solve Problem on LeetCode
            │
            ▼
Accepted Submission
            │
            ▼
CodeHub Sync Chrome Extension
            │
            ▼
Extracts:
• Problem Title
• Description
• Difficulty
• Tags
• Accepted Code
            │
            ▼
Creates Folder Structure
            │
            ▼
Commits & Pushes to GitHub

No manual uploads required.


🛠️ Tech Stack

  • JavaScript
  • Chrome Extension APIs
  • GitHub REST API
  • LeetCode
  • Git

✨ Features

  • ✅ Automatic GitHub synchronization
  • ✅ Organized topic-wise repository
  • ✅ Problem description included
  • ✅ Accepted solutions only
  • ✅ Clean folder hierarchy
  • ✅ Continuous updates

🔗 Related Project

This repository is powered by my Chrome extension:

CodeHub Sync

Automatically syncs accepted coding solutions from platforms like LeetCode, GeeksforGeeks, and HackerRank directly to GitHub.

👉 Repository: https://github.com/kishanrajput23/CodeHub-Sync


🎯 Purpose

This repository helps me:

  • Track my coding journey
  • Maintain consistency
  • Build a searchable solution archive
  • Prepare for technical interviews
  • Showcase problem-solving skills

🙋‍♂️ Author

Kishan Kumar Rai


⭐ If you found this repository useful, consider giving it a star!

Made with ❤️ using CodeHub Sync

LeetCode Topics

Hash Table

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0146-lru-cache
0160-intersection-of-two-linked-lists
0567-permutation-in-string
1331-rank-transform-of-an-array
3016-minimum-number-of-pushes-to-type-word-ii
3541-find-most-frequent-vowel-and-consonant
3945-digit-frequency-score
3731-find-missing-elements
2958-length-of-longest-subarray-with-at-most-k-frequency
3090-maximum-length-substring-with-two-occurrences
3668-restore-finishing-order
3471-find-the-largest-almost-missing-integer
1386-cinema-seat-allocation
3718-smallest-missing-multiple-of-k

String

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0567-permutation-in-string
1456-maximum-number-of-vowels-in-a-substring-of-given-length
3014-minimum-number-of-pushes-to-type-word-i
3016-minimum-number-of-pushes-to-type-word-ii
3498-reverse-degree-of-a-string
3517-smallest-palindromic-rearrangement-i
3541-find-most-frequent-vowel-and-consonant
3110-score-of-a-string
3090-maximum-length-substring-with-two-occurrences
2011-final-value-of-variable-after-performing-operations
2942-find-words-containing-character
1927-sum-game
2904-shortest-and-lexicographically-smallest-beautiful-string
3838-weighted-word-mapping
1108-defanging-an-ip-address

Counting

3016-minimum-number-of-pushes-to-type-word-ii
3541-find-most-frequent-vowel-and-consonant
2029-stone-game-ix

Array

0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0628-maximum-product-of-three-numbers
0643-maximum-average-subarray-i
0704-binary-search
1260-shift-2d-grid
1331-rank-transform-of-an-array
1464-maximum-product-of-two-elements-in-an-array
1979-find-greatest-common-divisor-of-array
3867-sum-of-gcd-of-formed-pairs
3898-find-the-degree-of-each-vertex
0075-sort-colors
0486-predict-the-winner
0877-stone-game
1406-stone-game-iii
3731-find-missing-elements
3925-concatenate-array-with-reverse
1140-stone-game-ii
2958-length-of-longest-subarray-with-at-most-k-frequency
3702-longest-subsequence-with-non-zero-bitwise-xor
2029-stone-game-ix
3668-restore-finishing-order
1920-build-array-from-permutation
3471-find-the-largest-almost-missing-integer
1386-cinema-seat-allocation
3069-distribute-elements-into-two-arrays-i
2011-final-value-of-variable-after-performing-operations
2942-find-words-containing-character
3718-smallest-missing-multiple-of-k
3701-compute-alternating-sum
3838-weighted-word-mapping
2091-removing-minimum-and-maximum-from-array

Sliding Window

0003-longest-substring-without-repeating-characters
0567-permutation-in-string
0643-maximum-average-subarray-i
1456-maximum-number-of-vowels-in-a-substring-of-given-length
2958-length-of-longest-subarray-with-at-most-k-frequency
3090-maximum-length-substring-with-two-occurrences
2904-shortest-and-lexicographically-smallest-beautiful-string

Sorting

0628-maximum-product-of-three-numbers
1331-rank-transform-of-an-array
1464-maximum-product-of-two-elements-in-an-array
3016-minimum-number-of-pushes-to-type-word-ii
3517-smallest-palindromic-rearrangement-i
3536-maximum-product-of-two-digits
3867-sum-of-gcd-of-formed-pairs
0075-sort-colors
3731-find-missing-elements

Two Pointers

0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0234-palindrome-linked-list
0567-permutation-in-string
0876-middle-of-the-linked-list
3867-sum-of-gcd-of-formed-pairs
0075-sort-colors

Enumeration

1291-sequential-digits
3345-smallest-divisible-digit-product-i

Binary Search

0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0704-binary-search
0069-sqrtx

Math

0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0628-maximum-product-of-three-numbers
1979-find-greatest-common-divisor-of-array
3014-minimum-number-of-pushes-to-type-word-i
3516-find-closest-person
3536-maximum-product-of-two-digits
3658-gcd-of-odd-and-even-sums
3867-sum-of-gcd-of-formed-pairs
0069-sqrtx
0486-predict-the-winner
3945-digit-frequency-score
0877-stone-game
1406-stone-game-iii
3345-smallest-divisible-digit-product-i
1140-stone-game-ii
1510-stone-game-iv
2769-find-the-maximum-achievable-number
3783-mirror-distance-of-an-integer
2029-stone-game-ix
2894-divisible-and-non-divisible-sums-difference
3622-check-divisibility-by-digit-sum-and-product
1927-sum-game
2469-convert-the-temperature

Number Theory

1979-find-greatest-common-divisor-of-array
3658-gcd-of-odd-and-even-sums
3867-sum-of-gcd-of-formed-pairs

Linked List

0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0146-lru-cache
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0876-middle-of-the-linked-list
0328-odd-even-linked-list
2058-find-the-minimum-and-maximum-number-of-nodes-between-critical-points

Recursion

0206-reverse-linked-list
0234-palindrome-linked-list
0486-predict-the-winner

Simulation

1260-shift-2d-grid
3498-reverse-degree-of-a-string
3867-sum-of-gcd-of-formed-pairs
3925-concatenate-array-with-reverse
1920-build-array-from-permutation
3069-distribute-elements-into-two-arrays-i
2011-final-value-of-variable-after-performing-operations
3701-compute-alternating-sum
3838-weighted-word-mapping

Stack

0094-binary-tree-inorder-traversal
0234-palindrome-linked-list

Design

0146-lru-cache

Doubly-Linked List

0146-lru-cache

Graph Theory

3898-find-the-degree-of-each-vertex
3310-remove-methods-from-project

Matrix

1260-shift-2d-grid
3898-find-the-degree-of-each-vertex

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0110-balanced-binary-tree
0112-path-sum
0199-binary-tree-right-side-view
0236-lowest-common-ancestor-of-a-binary-tree
0501-find-mode-in-binary-search-tree
0543-diameter-of-binary-tree
0662-maximum-width-of-binary-tree
0700-search-in-a-binary-search-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0112-path-sum
0199-binary-tree-right-side-view
0236-lowest-common-ancestor-of-a-binary-tree
0501-find-mode-in-binary-search-tree
0543-diameter-of-binary-tree
0662-maximum-width-of-binary-tree
3310-remove-methods-from-project

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0110-balanced-binary-tree
0112-path-sum
0199-binary-tree-right-side-view
0236-lowest-common-ancestor-of-a-binary-tree
0501-find-mode-in-binary-search-tree
0543-diameter-of-binary-tree
0662-maximum-width-of-binary-tree
0700-search-in-a-binary-search-tree

Breadth-First Search

0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0112-path-sum
0199-binary-tree-right-side-view
0662-maximum-width-of-binary-tree
3310-remove-methods-from-project

Binary Search Tree

0098-validate-binary-search-tree
0501-find-mode-in-binary-search-tree
0700-search-in-a-binary-search-tree

Heap (Priority Queue)

1464-maximum-product-of-two-elements-in-an-array

Counting Sort

3517-smallest-palindromic-rearrangement-i

Greedy

3014-minimum-number-of-pushes-to-type-word-i
3016-minimum-number-of-pushes-to-type-word-ii
2029-stone-game-ix
1386-cinema-seat-allocation
1927-sum-game
2091-removing-minimum-and-maximum-from-array

Dynamic Programming

0486-predict-the-winner
0877-stone-game
1406-stone-game-iii
1140-stone-game-ii
1510-stone-game-iv

Game Theory

0486-predict-the-winner
0877-stone-game
1406-stone-game-iii
1140-stone-game-ii
1510-stone-game-iv
2029-stone-game-ix
1927-sum-game

Uncategorized

2703-return-length-of-arguments-passed
2879-display-the-first-three-rows
2884-modify-columns
2888-reshape-data-concatenate
2881-create-a-new-column

Minimax

1406-stone-game-iii
1140-stone-game-ii
1510-stone-game-iv
2029-stone-game-ix

Zero-Sum Game

1406-stone-game-iii
1140-stone-game-ii
1510-stone-game-iv
2029-stone-game-ix

Prefix Sum

1140-stone-game-ii

Nim Game

1510-stone-game-iv
2029-stone-game-ix

Sprague–Grundy Theorem

1510-stone-game-iv

Bit Manipulation

3702-longest-subsequence-with-non-zero-bitwise-xor
1386-cinema-seat-allocation

Releases

Packages

Contributors

Languages