Все публикации

3227. Vowels Game in a String | Greedy | Strings

3228. Maximum Number of Operations to Move Ones to the End | Greedy | Two Pointers

3229. Minimum Operations to Make Array Equal to Target | Greedy | With Proof

2392. Build a Matrix With Conditions | Topological Sort | Graph | Easy & Clean Code

3223. Minimum Length of String After Operations | Hash Map | Strings

3224. Minimum Array Changes to Make Differences Equal | Prefix Sums | Why not Greedy

1605. Find Valid Matrix Given Row and Column Sums | Greedy | With Proof

1380. Lucky Numbers in a Matrix | 4 Approaches | Brute - Better - Optimal - Optimal++ | Arrays

1530. Number of Good Leaf Nodes Pairs | LCA | BFS | DFS | 4 Approaches

1110. Delete Nodes And Return Forest | DFS | Tree

2096. Step-By-Step Directions From a Binary Tree Node to Another | LCA | Backtracking | 2 Pointers

236. Lowest Common Ancestor of a Binary Tree | [Super Important] | LCA of Binary Tree

2196. Create Binary Tree From Descriptions | Tree | Hash Map @codeWithAryanBhai

3218 & 3219. Minimum Cost for Cutting Cake II & I | Greedy | Sorting @codeWithAryanBhai

726. Number of Atoms | Stack | Pre-processing | O(nlogn) time | 2 Approaches @codeWithAryanBhai

2751. Robot Collisions | Stack | Sorting | Not Hard 🫡

1717. Maximum Score From Removing Substrings | Why not DP | Greedy | Stack | 2 Pointer | 2 Approach

1190. Reverse Substrings Between Each Pair of Parentheses | StacK | Wormhole Teleportation technique

3213. Construct String with Minimum Cost | DP + Trie | ! Aho-Corasick Algorithm Explanation

1598. Crawler Log Folder | Stack | Array | O(1) Space

1701. Average Waiting Time | Simulation | Array

1823. Find the Winner of the Circular Game | Queue | Recursion | Math | 3 Approaches

1518. Water Bottles | O(1) time | Math | 2 Approaches

3207. Maximum Points After Enemy Battles | Sorting | Greedy