Find the number of islands | GfG Problem of the Day | Graph | DFS | Connected Components

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ต.ค. 2024

ความคิดเห็น • 1

  • @codetips-byRochak
    @codetips-byRochak  3 วันที่ผ่านมา

    Let's Connect 🤝 :
    LinkedIn : www.linkedin.com/in/rochak-vyas17/
    Code :-
    class Solution {
    public:
    void dfs(vector&grid,vector&vis,int i,int j,int n, int m){
    if(i>=n||j>=m||i