From 34d8668c3757a492d2ebe0de4fc385b7dddfe699 Mon Sep 17 00:00:00 2001 From: Krish Date: Mon, 29 Dec 2025 20:32:43 +0545 Subject: [PATCH] . --- Leetcode/0565-array-nesting/index.md | 2 +- Leetcode/0854-making-a-large-island/index.md | 58 ++++++++++++++++++- Leetcode/0878-shifting-letters/index.md | 17 +++++- .../index.md | 24 +++++++- Leetcode/0900-reordered-power-of-2/index.md | 16 ++++- Leetcode/0901-advantage-shuffle/index.md | 26 ++++++++- .../index.md | 26 ++++++++- .../index.md | 18 +++++- .../index.md | 36 +++++++++++- Leetcode/0936-rle-iterator/index.md | 3 - 10 files changed, 214 insertions(+), 12 deletions(-) diff --git a/Leetcode/0565-array-nesting/index.md b/Leetcode/0565-array-nesting/index.md index 62b1ab26..03616881 100644 --- a/Leetcode/0565-array-nesting/index.md +++ b/Leetcode/0565-array-nesting/index.md @@ -112,7 +112,7 @@ public: maxi = max(maxi, dp[i]); return maxi + 1; } - + void dfs(int u, int par, vector& vis) { vis[u] = 1; for (int v : adj[u]) { diff --git a/Leetcode/0854-making-a-large-island/index.md b/Leetcode/0854-making-a-large-island/index.md index 4da87d5a..4279d7a6 100644 --- a/Leetcode/0854-making-a-large-island/index.md +++ b/Leetcode/0854-making-a-large-island/index.md @@ -161,7 +161,63 @@ class Solution { diff --git a/Leetcode/0878-shifting-letters/index.md b/Leetcode/0878-shifting-letters/index.md index 63e21dd8..8923ffa5 100644 --- a/Leetcode/0878-shifting-letters/index.md +++ b/Leetcode/0878-shifting-letters/index.md @@ -92,7 +92,22 @@ class Solution { diff --git a/Leetcode/0892-shortest-subarray-with-sum-at-least-k/index.md b/Leetcode/0892-shortest-subarray-with-sum-at-least-k/index.md index c5a6b27e..ab7b90c3 100644 --- a/Leetcode/0892-shortest-subarray-with-sum-at-least-k/index.md +++ b/Leetcode/0892-shortest-subarray-with-sum-at-least-k/index.md @@ -72,7 +72,29 @@ class Solution { diff --git a/Leetcode/0900-reordered-power-of-2/index.md b/Leetcode/0900-reordered-power-of-2/index.md index ce196827..db8aac34 100644 --- a/Leetcode/0900-reordered-power-of-2/index.md +++ b/Leetcode/0900-reordered-power-of-2/index.md @@ -57,7 +57,21 @@ class Solution { diff --git a/Leetcode/0901-advantage-shuffle/index.md b/Leetcode/0901-advantage-shuffle/index.md index fbd609f6..5018eea3 100644 --- a/Leetcode/0901-advantage-shuffle/index.md +++ b/Leetcode/0901-advantage-shuffle/index.md @@ -65,7 +65,31 @@ class Solution { diff --git a/Leetcode/0905-length-of-longest-fibonacci-subsequence/index.md b/Leetcode/0905-length-of-longest-fibonacci-subsequence/index.md index 31b3ba03..ae83d29d 100644 --- a/Leetcode/0905-length-of-longest-fibonacci-subsequence/index.md +++ b/Leetcode/0905-length-of-longest-fibonacci-subsequence/index.md @@ -102,7 +102,31 @@ class Solution { diff --git a/Leetcode/0920-uncommon-words-from-two-sentences/index.md b/Leetcode/0920-uncommon-words-from-two-sentences/index.md index 94ef7dc3..498df78b 100644 --- a/Leetcode/0920-uncommon-words-from-two-sentences/index.md +++ b/Leetcode/0920-uncommon-words-from-two-sentences/index.md @@ -103,7 +103,23 @@ class Solution { diff --git a/Leetcode/0925-construct-binary-tree-from-preorder-and-postorder-traversal/index.md b/Leetcode/0925-construct-binary-tree-from-preorder-and-postorder-traversal/index.md index c5dd44b1..1f23a00d 100644 --- a/Leetcode/0925-construct-binary-tree-from-preorder-and-postorder-traversal/index.md +++ b/Leetcode/0925-construct-binary-tree-from-preorder-and-postorder-traversal/index.md @@ -73,7 +73,41 @@ class Solution { diff --git a/Leetcode/0936-rle-iterator/index.md b/Leetcode/0936-rle-iterator/index.md index b536f564..032133f4 100644 --- a/Leetcode/0936-rle-iterator/index.md +++ b/Leetcode/0936-rle-iterator/index.md @@ -107,9 +107,7 @@ private: int node; Pair(long long c, int n) : count(c), node(n) {} }; - deque dq; - public: RLEIterator(vector& encoding) { int n = encoding.size(); @@ -119,7 +117,6 @@ public: dq.emplace_back(count, node); } } - int next(int n) { long long req = n; int last = -1;