1040.moving-stones-until-consecutive-ii.pdf
90.8 KB
leetcode.cn 2023-04-07
🟡1040.moving-stones-until-consecutive-ii
🏷️ Tags
#array #math #two_pointers #sorting
🟡1040.moving-stones-until-consecutive-ii
🏷️ Tags
#array #math #two_pointers #sorting
1020.number-of-enclaves.pdf
106.8 KB
leetcode.com 2023-04-07
🟡1020.number-of-enclaves
🏷️ Tags
#array #depth_first_search #breadth_first_search #union_find #matrix
🟡1020.number-of-enclaves
🏷️ Tags
#array #depth_first_search #breadth_first_search #union_find #matrix
1125.smallest-sufficient-team.pdf
87.4 KB
leetcode.cn 2023-04-08
🔴1125.smallest-sufficient-team
🏷️ Tags
#bit_manipulation #array #dynamic_programming #bitmask
🔴1125.smallest-sufficient-team
🏷️ Tags
#bit_manipulation #array #dynamic_programming #bitmask
133.clone-graph.pdf
177.6 KB
leetcode.com 2023-04-08
🟡133.clone-graph
🏷️ Tags
#hash_table #depth_first_search #breadth_first_search #graph
🟡133.clone-graph
🏷️ Tags
#hash_table #depth_first_search #breadth_first_search #graph
1857.largest-color-value-in-a-directed-graph.pdf
92.3 KB
leetcode.com 2023-04-09
🔴1857.largest-color-value-in-a-directed-graph
🏷️ Tags
#hash_table #dynamic_programming #graph #topological_sort #memoization #counting
🔴1857.largest-color-value-in-a-directed-graph
🏷️ Tags
#hash_table #dynamic_programming #graph #topological_sort #memoization #counting
1019.next-greater-node-in-linked-list.pdf
92.6 KB
leetcode.cn 2023-04-10
🟡1019.next-greater-node-in-linked-list
🏷️ Tags
#stack #array #linked_list #monotonic_stack
🟡1019.next-greater-node-in-linked-list
🏷️ Tags
#stack #array #linked_list #monotonic_stack
📌 Leetcode Daily Question
Features:
* Daily questions from leetcode.cn and leetcode.com
* Telegram Instant View to display the question's description
* RSS feeds for notifications
RSS-EN | RSS-CN
👨🏻💻 Author: @NavePnow
📺 Channel: @leetcodeDailyQuestion
⭐ Feel free to start the repository!
Features:
* Daily questions from leetcode.cn and leetcode.com
* Telegram Instant View to display the question's description
* RSS feeds for notifications
RSS-EN | RSS-CN
👨🏻💻 Author: @NavePnow
📺 Channel: @leetcodeDailyQuestion
⭐ Feel free to start the repository!
Leetcode Daily Question pinned «📌 Leetcode Daily Question Features: * Daily questions from leetcode.cn and leetcode.com * Telegram Instant View to display the question's description * RSS feeds for notifications RSS-EN | RSS-CN 👨🏻💻 Author: @NavePnow 📺 Channel: @leetcodeDailyQuestion…»
leetcode.cn 2023-04-12
🔴1147.longest-chunked-palindrome-decomposition
🏷️ Tags
#greedy #two_pointers #string #dynamic_programming #hash_function #rolling_hash
🔴1147.longest-chunked-palindrome-decomposition
🏷️ Tags
#greedy #two_pointers #string #dynamic_programming #hash_function #rolling_hash
Telegraph
longest-chunked-palindrome-decomposition
你会得到一个字符串 text 。你应该把它分成 k 个子字符串 (subtext1, subtext2,…, subtextk) ,要求满足:
leetcode.cn 2023-04-15
🟡1042.flower-planting-with-no-adjacent
🏷️ Tags
#depth_first_search #breadth_first_search #graph
🟡1042.flower-planting-with-no-adjacent
🏷️ Tags
#depth_first_search #breadth_first_search #graph
Telegraph
flower-planting-with-no-adjacent
有 n 个花园,按从 1 到 n 标记。另有数组 paths ,其中 paths[i] = [xi, yi] 描述了花园 xi 到花园 yi 的双向路径。在每个花园中,你打算种下四种花之一。 另外,所有花园 最多 有 3 条路径可以进入或离开. 你需要为每个花园选择一种花,使得通过路径相连的任何两个花园中的花的种类互不相同。 以数组形式返回 任一 可行的方案作为答案 answer,其中 answer[i] 为在第 (i+1) 个花园中种植的花的种类。花的种类用 1、2、3、4 表示。保证存在答案。 …
leetcode.com 2023-04-15
🔴2218.maximum-value-of-k-coins-from-piles
🏷️ Tags
#array #dynamic_programming #prefix_sum
🔴2218.maximum-value-of-k-coins-from-piles
🏷️ Tags
#array #dynamic_programming #prefix_sum
Telegraph
maximum-value-of-k-coins-from-piles
There are n piles of coins on a table. Each pile consists of a positive number of coins of assorted denominations. In one move, you can choose any coin on top of any pile, remove it, and add it to your wallet. Given a list piles, where piles[i] is a list…
👍1