Skip to content

YVK49/LEETCODE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

122 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeetCode Solutions in Python

Welcome to my LeetCode solutions repository! This collection contains my solutions to various LeetCode problems, implemented in Python, focused on efficiency and clean code.

πŸš€ Repository Overview

This repository is organized by problem number. Each directory corresponds to a specific LeetCode problem and contains the Python solution.

LEETCODE :

Problem ID Difficulty Problem Description / Function Name Solution Link
1 Easy Two Sum View Solution
7 Medium reverse integer View Solution
9 Easy palindrome number View Solution
15 Medium 3 sum View Solution
16 Medium 3 sum closest View Solution
18 Medium 4 sum View Solution
26 Easy Remove Duplicates from Sorted Array View Solution
27 Easy Remove Element View Solution
50 Medium Pow(x, n) View Solution
58 Medium length of last word View Solution
75 Medium length of last word View Solution
80 Medium Remove Duplicates from Sorted Array II View Solution
121 Easy Best Time to Buy and Sell Stock View Solution
122 Medium Best Time to Buy and Sell Stock II View Solution
167 Medium Two Sum II - Input Array Is Sorted View Solution
202 Easy happy number View Solution
217 Easy contains duplicates View Solution
219 Easy contains duplicates - II View Solution
231 Easy Power of Two View Solution
283 Easy Move Zeroes View Solution
287 Medium return the duplicate value View Solution
326 Easy Power of Three View Solution
342 Easy Power of Four View Solution
344 Easy reverse a string View Solution
345 Easy reverse a all vowels in a string View Solution
392 Medium is subsequence View Solution
412 Easy Fizz Buzz View Solution
485 Easy max consecutive one's View Solution
509 Easy Fibonacci Number View Solution
541 Easy Reverse string II View Solution
557 Easy reverse wrods in a string III View Solution
633 Medium sum of square numbers View Solution
680 Easy valid palindrome II View Solution
825 Medium friends of appropriate age View Solution
905 Easy Sort Array By Parity View Solution
922 Easy Sort Array By Parity II View Solution
977 Easy squares of sorted array View Solution
1137 Easy N-th Tribonacci Number View Solution
1281 Easy Subtract Product and Sum of Digits View Solution
1346 Easy check if N and its double exists View Solution
1348 Easy Find the Distance Value Between Two Arrays View Solution
1365 Easy Smaller Numbers Than Current View Solution
1431 Easy Kids With the Greatest Number of Candies View Solution
1480 Easy Running Sum of 1d Array View Solution
1523 Easy Count Odd Numbers in an Interval View Solution
1550 Easy Three Consecutive Odds View Solution
1672 Easy Richest Customer Wealth View Solution
1979 Easy GCD View Solution
2000 Easy reverse the prefix of the word View Solution
2511 Easy maximum enimies captured View Solution
2520 Easy Count the Digits That Divide a Number View Solution
2824 Easy count pairs whose sum is less than target View Solution
2960 Easy Count Tested Devices After Test Ops View Solution
3099 Easy Harshad Number View Solution
3775 Medium reverse wordds with same vowel count View Solution

STRIVER'S SHEET:

Problem ID Difficulty Problem Description / Function Name Solution Link
1 Easy count digits View Solution
2 Easy revers integer (32-bit) View Solution
3 Easy is palindrome View Solution
4 Easy GCD View Solution
6 Easy divisors of a number View Solution

πŸ› οΈ Tech Stack

  • Language: Python 3.x
  • Platform: LeetCode

πŸƒ How to Use

  1. Clone the repository:
    git clone https://github.com/your-username/LEETCODE.git
  2. Navigate to a specific problem:
    cd LEETCODE/1
  3. Run the script:
    python 1.py
    

πŸ“Š Statistics (leetcode)

  • Total Problems Solved: 57
  • Easy: 41
  • Medium: 16
  • Hard: 0

πŸ“Š Statistics (striver's sheet)

  • Total Problems Solved: 05
  • Easy: 05
  • Medium: 0
  • Hard: 0

Happy Coding! πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages