問題タブ [morphological-analysis]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
96 問題
0
投票する
0
に答える
91
参照
python - バイナリ 2 次元配列で不完全なポリゴンの数を取得する方法
ブール 2D マトリックスでポリゴンをカウントするプログラム
現在のコード:再帰的な DFS アルゴリズムを使用して、ポリゴンの総数 (完了したかどうかに関係なく) を取得できます。しかし、完了したものと未完了のものを別々にカウントする必要があります。
サンプルの 10x10 バイナリ マトリックス:
この方法では、閉じたポリゴンと不完全なポリゴンの数を取得します。
0
投票する
1
に答える
92
参照

