Skip to content

NayeemJohnY/leetcode-problem-solving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeetCode Problem Solving

Welcome to my LeetCode problem-solving repository! This repository contains solutions to various LeetCode problems organized by algorithm patterns and data structures, implemented in both Python and Java.

πŸ“Š Progress Tracking

  • Total Problems Solved: 70
  • Java Solutions: 52
  • Python Solutions: 55
  • Sql Solutions: 15
  • Categories Covered: 12

πŸ“ Repository Structure

The problems are categorized into the following algorithmic patterns:

  • Binary Search - Efficient searching in sorted arrays
  • Bit Manipulation - Operations using bitwise operators
  • Database - SQL queries and database operations
  • Dynamic Programming - Optimization problems using memoization
  • Greedy - Locally optimal choices leading to global optimum
  • Hashing - Hash table and hash map problems
  • Linked List - Single and doubly linked list operations
  • Sliding Window - Subarray/substring problems
  • Stack - LIFO data structure problems
  • String Manipulation - String processing and algorithms
  • Tree - Binary tree traversal and manipulation
  • Two Pointers - Array problems using multiple pointers

πŸ” Complete Problems List

Binary Search

Problem LeetCode Java Python SQL
SearchInsertPosition LC-35 Java-35 Python-35 -
FindMinimumInRotatedArray LC-153 Java-153 Python-153 -
FirstBadVersion LC-278 Java-278 Python-278 -
FindSmallestLetterGreaterThanTarget LC-744 Java-744 Python-744 -

Bit Manipulation

Problem LeetCode Java Python SQL
SingleNumber LC-136 Java-136 Python-136 -
SumOfTwoIntegers LC-371 Java-371 Python-371 -

Database

Problem LeetCode Java Python SQL
CombineTwoTables LC-175 - - SQL-175
EmployeesEarningMoreThanTheirManagers LC-181 - - SQL-181
DuplicateEmails LC-182 - - SQL-182
CustomersWhoNeverOrder LC-183 - - SQL-183
DeleteDuplicateEmails LC-196 - - SQL-196
RisingTemperature LC-197 - - SQL-197
GamePlayAnalysis I LC-511 - - SQL-511
EmployeeBonus LC-577 - - SQL-577
FindCustomerReferee LC-584 - - SQL-584
CustomerPlacingtheLargestNumberofOrders LC-586 - - SQL-586
BigCountries LC-595 - - SQL-595
ClassesWithatLeast5Students LC-596 - - SQL-596
SalesPerson LC-607 - - SQL-607
TriangleJudgement LC-610 - - SQL-610
BiggestSingleNumber LC-619 - - SQL-619

Dynamic Programming

Problem LeetCode Java Python SQL
ClimbingStairs LC-70 Java-70 Python-70 -
FibonacciNumber LC-509 Java-509 Python-509 -
LongestPalindromicSubsequence LC-516 Java-516 Python-516 -

Greedy

Problem LeetCode Java Python SQL
MaximumScoreFromRemovingSubstrings LC-1717 Java-1717 Python-1717 -

Hashing

Problem LeetCode Java Python SQL
TwoSum LC-1 Java-1 Python-1 -
GroupAnagrams LC-49 Java-49 Python-49 -
LongestConsectiveSequence LC-128 Java-128 Python-128 -
HappyNumber LC-202 Java-202 Python-202 -
ContainsDuplicate LC-217 Java-217 Python-217 -
TopKFrequentElements LC-347 Java-347 Python-347 -
TopKFrequentWords LC-692 Java-692 Python-692 -
MaximumUniqueSubarraySumAfterDeletion LC-3487 Java-3487 Python-3487 -

Linked List

Problem LeetCode Java Python SQL
AddTwoNumbers LC-2 Java-2 Python-2 -
RemoveNthNodeFromEndOfList LC-19 Java-19 Python-19 -
MergeTwoSortedLists LC-21 Java-21 Python-21 -
ReverseLinkedListII LC-92 Java-92 Python-92 -
LinkedListCycle LC-141 Java-141 Python-141 -
LinkedListCycleII LC-142 Java-142 Python-142 -
ReverseLinkedList LC-206 Java-206 Python-206 -
PalindromeLinkedList LC-234 Java-234 Python-234 -
DeleteNodeInALinkedList LC-237 Java-237 Python-237 -
MiddleOfTheLinkedList LC-876 Java-876 Python-876 -
DeleteTheMiddleNodeOfALinkedList LC-2095 Java-2095 Python-2095 -

Sliding Window

Problem LeetCode Java Python SQL
LongestSubstringWithoutRepeatChars LC-3 Java-3 Python-3 -
MinSubArray LC-209 Java-209 Python-209 -
FindMaxAverage I LC-643 Java-643 Python-643 -
FruitIntoBaskets LC-904 Java-904 Python-904 -
NumberOfSubArraysAverageThreshold LC-1343 Java-1343 Python-1343 -
MaximumVowelsSubstringLength LC-1456 Java-1456 Python-1456 -
MaximumErasureValue LC-1695 Java-1695 Python-1695 -
SubstringsOfSizeThreeDistinctChars LC-1876 Java-1876 Python-1876 -

Stack

Problem LeetCode Java Python SQL
ValidParantheses LC-20 Java-20 Python-20 -
RemovingStarsFromAString LC-2390 Java-2390 Python-2390 -

String Manipulation

Problem LeetCode Java Python SQL
LongestCommonPrefix LC-14 Java-14 Python-14 -
LengthOfLastWord LC-58 Java-58 Python-58 -
ReverseWordInString LC-151 Java-151 Python-151 -
DeleteCharactersToMakeFancyString LC-1957 Java-1957 Python-1957 -

Tree

Problem LeetCode Java Python SQL
BinaryTreeInorderTraversal LC-94 Java-94 Python-94 -
SameTree LC-100 - Python-100 -
SymmetricTree LC-101 - Python-101 -
MaximumDepthOfBinaryTree LC-104 - Python-104 -

Two Pointers

Problem LeetCode Java Python SQL
LongestPalindromicSubstring LC-5 Java-5 Python-5 -
ContainerWithMostWater LC-11 Java-11 Python-11 -
RemoveDuplicates LC-26 Java-26 Python-26 -
RemoveElement LC-27 Java-27 Python-27 -
TrappingRainWater LC-42 Java-42 Python-42 -
MergeSortedArrray LC-88 Java-88 Python-88 -
TwoSumII LC-167 Java-167 Python-167 -
MoveZeroes LC-283 Java-283 Python-283 -

πŸš€ Getting Started

  • Python 3.x for running Python solutions
  • Java 8+ for running Java solutions

Happy Coding! πŸš€

README auto-generated by readme_manager.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published