Skip to content

This repository is used to store solved leetcode exercises.

Notifications You must be signed in to change notification settings

danoshi/Leetcode-exercises

Repository files navigation

LeetCode Solutions and Course Exercises

Within this repository, you'll discover a collection of LeetCode problems that I've tackled, along with a README detailing my thought process for each one.

Additionally, I've included exercises from various courses focused on learning data structures and algorithms. In the README, I strive to provide explanations for these exercises, accompanied by illustrative code demonstrating the algorithms or data structures discussed.

  1. Inside the ArrayExercise folder, you'll encounter various types of array problems that require solving specific challenges.

  2. The MathExercise folder contains mathematical problems for exploration.

  3. Within the Sorting and Searching folder, you'll discover problems related to sorting and searching, all of which I've solved.

  4. Moving on to StringsExercise, this section encompasses a diverse range of solved problems centered around string manipulation and related topics.

  5. Lastly, in the frontendmasters folder, you'll find solved exercises along with detailed descriptions focusing on data structures and algorithms.

Coverage

Coverage Report
FileStmtsMissCoverMissing
ArrayExercise/Best_Time_to_Buy_and_Sell_Stock_II
   BestTimetoBuyandSellStockII.py90100% 
ArrayExercise/Contains_Duplicate
   containsDuplicate.py210100% 
ArrayExercise/Height_Checker
   heightChecker.py120100% 
ArrayExercise/Intersection_of_Two_Arrays_II
   intersectionOfTwoArrays.py110100% 
ArrayExercise/Max_Consecutive_Ones
   MaxConsecutiveOnes.py140100% 
ArrayExercise/Move_Zeroes
   moveZeros.py2811 96%
ArrayExercise/Plus_One
   plusOne.py140100% 
ArrayExercise/Remove_Duplicates_from_Sorted_Array
   duplicateItemLeetcodeSolution.py100100% 
   removeDuplicateItem.py120100% 
ArrayExercise/Remove_Element
   RemoveElement.py180100% 
ArrayExercise/Replace_Elements_with_Greatest_Element_on_Right_Side
   ReplaceElementswithGreatestElementonRightSide.py100100% 
ArrayExercise/Rotate_Array
   rotatearray.py140100% 
ArrayExercise/Single_Number
   singleNumber.py90100% 
ArrayExercise/Sort_Array_By_Parity
   SortArrayByParity.py110100% 
ArrayExercise/Squares_of_a_Sorted_Array
   SquaresOfASortedArray.py80100% 
ArrayExercise/Two_Sum
   twoSum.py1411 93%
MathExercise/Find_Numbers_with_Even_Number_of_Digits
   FindNumbersWithEvenNumberOfDigits.py140100% 
MathExercise/Fizz_Buzz
   FizzBuzz.py160100% 
MathExercise/Power_of_three
   PowerOfThree.py1011 90%
MathExercise/Roman_to_Integer
   RomanToInteger.py120100% 
Sorting_and_Searching_Exercise/Check_If_N_and_Its_Double_Exist
   CheckIfNandItsDoubleExist.py1622 88%
Sorting_and_Searching_Exercise/Duplicate_Zeros
   DuplicateZeros.py120100% 
Sorting_and_Searching_Exercise/Merge_Sorted_Array
   MergeSortedArr.py80100% 
Sorting_and_Searching_Exercise/Valid_Mountain_Array
   ValidMountainArray.py1311 92%
StringExercise/First_Unique_Character_in_a_String
   FirstUniqueCharacterInAString.py811 88%
StringExercise/Reverse_Integer
   reverseInt.py1311 92%
StringExercise/Reverse_String
   reverseString.py150100% 
StringExercise/Valid_Anagram
   anagram.py1311 92%
StringExercise/Valid_Palindrome
   palindrom.py1388 38%
frontendmasters/Complete_Intro_to_Computer_Science/AVLTree
   avltree.py9588 92%
frontendmasters/Complete_Intro_to_Computer_Science/BinarySearchTree
   binarySearchTree.py3811 97%
frontendmasters/Complete_Intro_to_Computer_Science/BreadthFirstTreeTraversals
   breadthFirstTreeTraversals.py270100% 
frontendmasters/Complete_Intro_to_Computer_Science/DepthFirstTreeTraversals
   depthFirstTreeTraversals.py270100% 
frontendmasters/Complete_Intro_to_Computer_Science/Graphs
   graphs.py220100% 
frontendmasters/Complete_Intro_to_Computer_Science/InsertionSort
   insertionsort.py120100% 
frontendmasters/Complete_Intro_to_Computer_Science/Pathfinding
   pathfinding.py4922 96%
frontendmasters/Complete_Intro_to_Computer_Science/Tries
   tries.py3811 97%
frontendmasters/Complete_Intro_to_Computer_Science/arraylist
   arraylist.py2311 96%
frontendmasters/Complete_Intro_to_Computer_Science/binarySearch
   binarySearch.py1811 94%
frontendmasters/Complete_Intro_to_Computer_Science/bloomfilters
   bloomfilters.py150100% 
frontendmasters/Complete_Intro_to_Computer_Science/bubblesort
   bubblesort.py130100% 
frontendmasters/Complete_Intro_to_Computer_Science/heapsort
   heapsort.py260100% 
frontendmasters/Complete_Intro_to_Computer_Science/linkedList
   linkedList.py661515 77%
frontendmasters/Complete_Intro_to_Computer_Science/mergesort
   mergeSort.py220100% 
frontendmasters/Complete_Intro_to_Computer_Science/radixSort
   radixsort.py310100% 
frontendmasters/Complete_Intro_to_Computer_Science/recursion
   recursionFactorial.py811 88%
   recursionNestedArray.py100100% 
TOTAL9184795% 

About

This repository is used to store solved leetcode exercises.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages