col) into a land. Given a list of positions to operate, count the number of islands after each addLand operation. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may
A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, col) into a land. Given a list of positions to operate, count the number of islands after each addLand operation. An island is surrounded...
438. Find All Anagrams in a String # 题目 # Given a string s and a non-empty string p, find all the start indices of p’s anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and p will not be larger than 2
[2493. 将节点分成尽可能多的组](https://leetcode.cn/problems/divide-nodes-into-the-maximum-number-of-groups/) 7 [▲ 1632. 矩阵转换后的秩](https://leetcode.cn/problems/rank-transform-of-a-matrix/) [▲ 2003. 每棵子树内缺失的最小基因值](https://leetcode.cn/problems/smallest-missing-g...
0028-find-the-index-of-the-first-occurrence-in-a-string.py 0033-search-in-rotated-sorted-array.py 0034-find-first-and-last-position-of-element-in-sorted-array.py 0035-search-insert-position.py 0036-valid-sudoku.py 0039-combination-sum.py 0040-combination-sum-ii.py ...
Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路) - fanfind/LeetCodeAnimation
448. Find All Numbers Disappeared in an Array # 题目 # Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] inclusive that do not appear in this array. C
2002-maximum-product-of-the-length-of-two-palindromic-subsequences.rs 2013-detect-squares.rs 2017-grid-game.rs 2421-number-of-good-paths.rs 2642-design-graph-with-shortest-path-calculator.rs scala swift typescript .gitignore .prettierrc .problemSiteData.json CONTRIBUTING.md LICENSE Neetcode-update...