Skip to content

695.Max-Area-of-Island#17

Open
tom4649 wants to merge 1 commit intomainfrom
695.Max-Area-of-Island
Open

695.Max-Area-of-Island#17
tom4649 wants to merge 1 commit intomainfrom
695.Max-Area-of-Island

Conversation

@tom4649
Copy link
Copy Markdown
Owner

@tom4649 tom4649 commented Mar 15, 2026

yield from generate_if_inside_grid((i, j + 1))
yield from generate_if_inside_grid((i, j - 1))

def bfs(pos, visited):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bfs という名前はあまり好まないですが、関数内関数だから少し許容度が高めです。

関数名は、書かれたときには何が返ってくるかが知りたいのであって、要素ではないんですね。
冷蔵庫を断熱膨張などとメカニズムで呼ばれても、クーラーの話をしているかもしれないんです。
https://docs.google.com/document/d/11HV35ADPo9QxJOpJQ24FcZvtvioli770WWdZZDaLOfg/edit?tab=t.0#heading=h.fcs3httrll4l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants