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 both brute force way as as well as optimised way.

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

Welcome to my LeetCode playground! This repository is where I tackle coding challenges, experiment with algorithms, and push my problem-solving skills to the limit.
I will first go through the brute force approach and then dive into further optimising the code. Think of it as a coding dojo where I sharpen my tools and share my techniques with fellow warriors.

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 30+ 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
257 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
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

Contributing

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

Connect with me: [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 both brute force way as as well as optimised way.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published