leetcode.com 2025-10-07
🟡1488.avoid-flood-in-the-city
🏷️ Tags
#greedy #array #hash_table #binary_search #heap_priority_queue
🟡1488.avoid-flood-in-the-city
🏷️ Tags
#greedy #array #hash_table #binary_search #heap_priority_queue
Telegraph
avoid-flood-in-the-city
Your country has an infinite number of lakes. Initially, all the lakes are empty, but when it rains over the nth lake, the nth lake becomes full of water. If it rains over a lake that is full of water, there will be a flood. Your goal is to avoid floods in…
leetcode.cn 2025-10-16
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
Telegraph
smallest-missing-non-negative-integer-after-operations
给你一个下标从 0 开始的整数数组 nums 和一个整数 value 。 在一步操作中,你可以对 nums 中的任一元素加上或减去 value 。
leetcode.com 2025-10-16
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
🟡2598.smallest-missing-non-negative-integer-after-operations
🏷️ Tags
#greedy #array #hash_table #math
Telegraph
smallest-missing-non-negative-integer-after-operations
You are given a 0-indexed integer array nums and an integer value. In one operation, you can add or subtract value from any element of nums.