NQueen's Problem using Backtracking (Algorithm & C-code Explanation)

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 30

  • @prasadparanjape6234
    @prasadparanjape6234 5 лет назад +1

    Code isnt showing output even if n is changed by row

  • @nishantnirala1847
    @nishantnirala1847 8 лет назад +1

    Can you explain
    for getmarkedcol( ) what does the function return if a[row][i]=='Q' case is not encountered ?

    • @ram3616
      @ram3616 7 лет назад

      it returns cell position i mean column index position.

  • @shubhamgarde6830
    @shubhamgarde6830 8 лет назад

    explain the feasible function.... how the placement for the diagonal; works?????

  • @nitinsrivastava
    @nitinsrivastava 8 лет назад

    Hi can you explain what is the return value if it not returning anything and the if the (if condition is getting wrong for first time)??
    int getmarkedcol(int row) {
    int i;
    for (i = 0; i < n; i++)
    {
    if (a[row][i] == 'Q')
    {
    return (i);
    break;
    }
    }
    }

  • @crazygamerrohan9899
    @crazygamerrohan9899 Год назад

    okay

  • @shubhamchaudhary8688
    @shubhamchaudhary8688 8 лет назад

    Thanks...its very helpful!

  • @moizriaz4147
    @moizriaz4147 7 лет назад

    there is a mistake i would like to mention it its that c1-c2!=r1-r2 its working diganolly for this position
    .
    .
    .
    .
    but not for this postion
    .
    .
    .
    .
    can we fix the formula for other digonal position also ? :)

  • @wasdgamer1503
    @wasdgamer1503 7 лет назад

    first you understand it

  • @vishnuvardhannayakam2991
    @vishnuvardhannayakam2991 7 лет назад

    Send me source code

  • @ram3616
    @ram3616 7 лет назад

    show me ur code

  • @ANKITVERMA-fl1zn
    @ANKITVERMA-fl1zn 6 лет назад +1

    fake accent

  • @taikhoomrampura8482
    @taikhoomrampura8482 5 лет назад

    Fake accent.

  • @ajinkyagadgil3364
    @ajinkyagadgil3364 7 лет назад +1

    This code does not run