Skip to content

I will be uploading each and every Leetcode questions which I have got my hands on and would break down my approach in an optimised way preferring time complexity over space

License

Notifications You must be signed in to change notification settings

irfanbroo/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cracking the Code: My LeetCode Solutions

Dumping Leetcode solutions here, as instructed by Priya (thanks for the wonderful lessons, you really did gave me a headstart and I cant thank you enough)

What You'll Find Inside

  • Concise Solutions: No fluff, just clean and efficient code in multiple languages. I wil be preferring Python3 as well as Java.
  • Crystal-Clear Explanations: Detailed comments that break down the logic, making it easy to understand even the trickiest algorithms.
  • Performance Insights: Time and space complexity analysis to help you grasp the efficiency of each solution.
  • Real-World Connections: Where relevant, I'll connect LeetCode problems to real-world applications and scenarios.

Explore the Challenges

  • Arrays & Strings: Mastering the fundamentals. I will be doing problems related to recursion and backtracking, algorithms such as Flyods cycle detetction algorithm etc.
  • Linked Lists: Navigating the chains
  • Trees & Graphs: Branching out and connecting the dots
  • Dynamic Programming: Breaking down problems and conquering them
  • And More! Stay tuned as I continue to expand my LeetCode repertoire.

Join the Coding Adventure

i have currently solved more than 50+ problems and trust me, it gets easier as we move ahead.

My LeetCode Solutions

This repository contains my solutions to LeetCode problems in python3 as well as Java.

Table of Contents

# Title Difficulty Solution
26 Remove Duplicates from Sorted Array Easy Remove-Duplicates-from-Sorted-Array.py
169 Majority Elements Easy Majority_Element.py
162 Find Peak Element Medium Find_peak_element.py
217 Contains Duplicate Easy Contains_duplicate.py
852 Peak Index in a Mountain Array Medium Peak_Index_in_a_moutain_array.py
189 Rotate Array Medium Rotate_Array.py
74 Search a 2D Matrix Medium Search_a_2D_Marix
50 Pow (x,n) Medium Pow(x,n).py
287 Find the Duplicate Number Medium Find_the_Duplicate_Number.py
33 Search in a Rotated Sorted Array Medium Search_in_a_Rotated_Sorted_Array.py
238 Product of Array Except Self Medium Product_of_Array_Except_Self.java
709 To Lower Case Easy To_Lower_Case.py
121 Best time to buy and sell stocks Easy Best_time_to_buy_and_sell_stocks.py
2559 Count Vowel String in Ranges Medium Count_Vowel_String_in_ranges.py
258 Add Digits Easy Add_Digits.py
58 Length of Last Word Easy Length_of_last_word.py
58 FizzBuzz Easy Fizz_Buzz.py
58 Longest Common Prefix Easy Longest_common_prefix.py
2270 Number of Ways to split Array Medium Number_of_Ways_tp_Split-Array.py
136 Single Number Easy Single_number.py
344 Reverse String Easy Reverse_String.py
3289 The two sneaky Numbers of Digitville Easy The_two_Sneaky_Numbers_of_Digitville.py
916 Words Subsets Medium Words_Subsets.py
344 Remove Element Easy Remove_Element.py
1 Two Sum Easy Two_Sum.py
9 Palindrome Number Easy Palindrome_Number.py
268 Missing Number Easy Missing_Number.py
2185 Counting Words with a given prefix Easy Counting_words_with_a_given_prefix.py
3042 Count Prefix and Suffix pairs 1 Easy Count_prefix_and_suffix_pairs_1
172 Factorial Trailing Zeroes Medium fact_trailing_zeroes.py
977 Squares of a Sorted Array Easy Squares_of_a_Sorted_Array.py
977 Rotate Image Medium Rotate_image.py

Contributing

Feel free to open issues or pull requests if you have any suggestions or improvements.

Here is my leetcode [https://leetcode.com/u/wEznEQOSvA/]

About

I will be uploading each and every Leetcode questions which I have got my hands on and would break down my approach in an optimised way preferring time complexity over space

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published