puzzleknot / algorithm-puzzle

https://puzzleknot.github.io/algorithm-puzzle
0 stars 0 forks source link

グリッド上の最短距離 #13

Closed kitsuya0828 closed 1 year ago

kitsuya0828 commented 1 year ago

ほぼ完成してます

sotanishy commented 1 year ago

遅くなってごめん.

UIはイメージしていたとおりで,完璧です

いくつか修正点:

sotanishy commented 1 year ago

あと,antsの方をmainにマージしたので,gridにもマージをお願いします

kitsuya0828 commented 1 year ago

@sotanishy

あれ、答え合わないですかね...? (気づかずに→か↓の2択で $5\times2-2$ 回だけbit全探索しているので答えは一致しているはず...?)

確かにDPを使った方が良いと思ったのでコメントアウトしてDP解法に修正しました。 これでも答えが合わなかったら、僕の問題理解力に問題があるかもしれないです🥹

sotanishy commented 1 year ago

ans が undefined になっています笑

kitsuya0828 commented 1 year ago

ごめんなさい、コメントアウトしすぎてました笑

sotanishy commented 1 year ago

答え合った,完璧です

あとは,問題文に「動けるのは右と下だけ」というのを明記してほしいのと,mainの変更をマージするのだけやってもらえればOKです

kitsuya0828 commented 1 year ago

完了しましたー

sotanishy commented 1 year ago

みました!ありがとう