Skip to content

deep-priyo/AlgorithmAdventures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

200 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ AlgorithmAdventures

Welcome to AlgorithmAdventures! This is my personal coding journal where I solve algorithmic challenges on LeetCode and sharpen my problem-solving skills daily.
Join me as I explore different algorithms and techniques to crack challenging problems! ๐Ÿ’ปโœจ


๐Ÿ› ๏ธ LeetCode Skills Progress

๐Ÿง  Advanced Skills

๐Ÿ”ฅ Dynamic Programming ร—14
โš”๏ธ Divide and Conquer ร—6
๐ŸŽฏ Quickselect ร—3
๐Ÿ“š Monotonic Stack ร—8
๐Ÿงฉ Union Find ร—7
๐ŸŒ€ Monotonic Queue ร—3
๐Ÿ“ˆ Topological Sort ร—3
๐Ÿš€ Shortest Path ร—3


๐ŸŽฏ Intermediate Skills

๐Ÿ—„๏ธ Hash Table ร—56
โž— Math ร—30
๐Ÿ” Binary Search ร—27
๐ŸŒŠ Breadth-First Search (BFS) ร—19
๐ŸŽฏ Sliding Window ร—16
๐Ÿ’ก Bit Manipulation ร—15
โšก Greedy ร—14
๐ŸŒฒ Depth-First Search (DFS) ร—14


๐Ÿ’ก Fundamental Skills

๐Ÿงฉ Array ร—140
๐Ÿ“œ String ร—70
๐Ÿƒโ€โ™‚๏ธ๐Ÿƒโ€โ™€๏ธ Two Pointers ร—37
๐Ÿ“Š Sorting ร—28
๐Ÿงฎ Matrix ร—21
๐Ÿ”— Linked List ร—18
๐Ÿฅž Stack ร—17
๐ŸŽฎ Simulation ร—15


๐Ÿ“… Daily Challenge

Every day, I pick a new problem from LeetCode, solve it, and commit the solution here.
This is part of my commitment to improving my algorithmic thinking and coding proficiency, while also maintaining a streak of consistent progress.


๐Ÿ’ป How to Use This Repo

  • Each folder is named after the problem solved for that day.
  • Inside each folder, you'll find:
    • ๐Ÿ“ Code Solution
    • ๐Ÿ’ก Problem Explanation (in some cases)
    • โœ… Test Cases

๐Ÿš€ Let's Go!

Feel free to explore the repository and see how I approach various problems.
Let's learn together and continue to grow as problem-solvers! ๐ŸŒŸ


๐Ÿ“œ Problems Solved

( All problems solved are not yet listed below check repo for more problems )

๐Ÿ“œ Problems Solved

๐ŸŸข Easy Problems

  • 1652. Defuse the Bomb โ†’ ๐Ÿ•‘ O(n*k)
  • 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence โ†’ ๐Ÿ•‘ O(N)
  • 3151. Special Array I โ†’ ๐Ÿ•‘ O(N)
  • 2558. Take Gifts From the Richest Pile โ†’ ๐Ÿ•‘ O(N)
  • 1752. Check if Array Is Sorted and Rotated โ†’ ๐Ÿ•‘ O(N)
  • 3105. Longest Strictly Increasing or Strictly Decreasing Subarray โ†’ ๐Ÿ•‘ O(N)
  • 1800. Maximum Ascending Subarray Sum โ†’ ๐Ÿ•‘ O(N)
  • 1790. Check if One String Swap Can Make Strings Equal โ†’ ๐Ÿ•‘ O(N)
  • 3174. Clear Digits โ†’ ๐Ÿ•‘ O(N)
  • 2460. Apply Operations to an Array โ†’ ๐Ÿ•‘ O(N)
  • 2570. Merge Two 2D Arrays by Summing Values โ†’ ๐Ÿ•‘ O(N)
  • 2379. Minimum Recolors to Get K Consecutive Black Blocks โ†’ ๐Ÿ•‘ O(N)

๐ŸŸก Medium Problems

  • 2914. Minimum Number of Changes to Make Binary String Beautiful โ†’ ๐Ÿ•‘ O(n)
  • 3011. Find if Array Can Be Sorted โ†’ ๐Ÿ•‘ O(nยฒ)
  • 2275. Largest Combination With Bitwise AND Greater Than Zero โ†’ ๐Ÿ•‘ O(n)
  • 1829. Maximum XOR for Each Query โ†’ ๐Ÿ•‘ O(n)
  • 3133. Minimum Array End โ†’ ๐Ÿ•‘ O(n * 2^b)
  • 3097. Shortest Subarray With OR at Least K II โ†’ ๐Ÿ•‘ O(n)
  • 2601. Prime Subtraction Operation โ†’ ๐Ÿ•‘ O(n * m * sqrt(m))
  • 2563. Count the Number of Fair Pairs โ†’ Brute force & Optimized
  • 2257. Count Unguarded Cells in the Grid โ†’ ๐Ÿ•‘ O(k * (m+n))
  • 2516. Take K of Each Character From Left and Right โ†’ ๐Ÿ•‘ O(n)
  • 1861. Rotating the Box โ†’ ๐Ÿ•‘ O(n*m)
  • 438. Find All Anagrams in a String โ†’ ๐Ÿ•‘ O(N)
  • 54. Spiral Matrix โ†’ ๐Ÿ•‘ O(N*M)
  • 2109. Adding Spaces to a String โ†’ ๐Ÿ•‘ O(N)
  • 2981. Find Longest Special Substring That Occurs Thrice I โ†’ ๐Ÿ•‘ O(Nยฒ)
  • 2779. Maximum Beauty of an Array After Applying Operation โ†’ ๐Ÿ•‘ O(N log N)
  • 1726. Tuple with Same Product โ†’ ๐Ÿ•‘ O(Nยฒ)
  • 3160. Find the Number of Distinct Colors Among the Balls โ†’ ๐Ÿ•‘ O(N)
  • 2349. Design a Number Container System โ†’ ๐Ÿ•‘ O(1)
  • 2364. Count Number of Bad Pairs โ†’ ๐Ÿ•‘ O(N)
  • 1910. Remove All Occurrences of a Substring โ†’ ๐Ÿ•‘ O(N)
  • 2342. Max Sum of a Pair With Equal Sum of Digits โ†’ Brute Force Approach
  • 2342. Max Sum of a Pair With Equal Sum of Digits โ†’ ๐Ÿ•‘ O(N)
  • 3066. Minimum Operations to Exceed Threshold Value II โ†’ ๐Ÿ•‘ O(N Log(N))
  • 1352. Product of the Last K Numbers โ†’ ๐Ÿ•‘ O(1)
  • 2698. Find the Punishment Number of an Integer โ†’ ๐Ÿ•‘ O(N(log(N)))
  • 1415. The k-th Lexicographical String of All Happy Strings of Length n โ†’ ๐Ÿ•‘O(n*2^n)
  • 1980. Find Unique Binary String โ†’ ๐Ÿ•‘ O(2^n)
  • 3208. Alternating Groups II โ†’ ๐Ÿ•‘ O(N)
  • 2206. Divide Array Into Equal Pairs โ†’ ๐Ÿ•‘ O(N)

๐Ÿ† Competitive Coding Challenges

  • โœ… TCS CodeVita PYQ: Rotate String and Anagram
  • โœ… TCS CodeVita PYQ: SamBrideHunt
  • โœ… TCS Chakravyuha Matrix Traversal

About

Welcome to DailyCodeDrive! ๐Ÿš€ This repository tracks my daily journey of solving LeetCode problems. Every day, I tackle a new challenge, document my approach, and commit the solution to maintain a consistent coding streak. Follow along as I explore algorithms, data structures, and improve my problem-solving skills, one commit at a time!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages