Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: youngyangyang04/leetcode-master
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Jay-Chou118/leetcode-master
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 19, 2025

  1. Update 0101.孤岛的总面积.md

    这道题目的意思应该是计算孤岛个数吧,根据题意,
    对于
    5 6
    1 1 0 0 0 0
    1 1 0 0 0 0
    0 0 1 1 0 0
    0 0 0 0 0 1
    0 0 0 0 0 0
    这个输入,应该输出是1.
    但是按照卡哥的代码,输出会是2,问题就出在应该是找到==1的陆地后,继续进行dfs,而不是直接count++
    我这边是只修改dfs的部分,还没修改bfs 的部分
    Jay-Chou118 authored Jul 19, 2025
    Configuration menu
    Copy the full SHA
    eeca856 View commit details
    Browse the repository at this point in the history
Loading