Steps by Knight GFG Solution | BFS | Leetcode Minimum knight moves Hindi | Complete Graph Playlist

Поділитися
Вставка
  • Опубліковано 21 жов 2024
  • This is the video under the series of DATA STRUCTURE & ALGORITHM in a GRAPH Playlist. Now we are going to solve Steps by Knight GFG | Minimum Knight Moves from Leetcode | Graph series
    Join My Telegram channel for more Updates: telegram.me/he...
    complete DSA preparation: github.com/Pri...
    ----------------------------------------------------------------------------------------
    Steps by Knight: practice.geeks...
    code in this video: github.com/Pri...
    ----------------------------------------------------------------------------------------
    *Follow me *
    LinkedIn► / iamprince
    Facebook► / helloworldofficials
    Instagram► / helloworldbyprince
    Twitter► / prince_king_
    Telegram► telegram.me/he...
    ----------------------------------------------------------------------------------------
    ►Our Playlists on:-
    ► Tree: • Tree Data Structure & ...
    ► Hashing: • Hashing Data Structure...
    ► Graph: • Graph Data Structure &...
    ► Matrix: • Matrix (Multidimension...
    ► STL: • Standard Template Libr...
    ► Leetcode: • LeetCode Solutions And...
    ►Competitive Programming: • Full course in Competi...
    ►C++ Full Course : • C++ full Course in HINDI
    ►Algorithms: • L-01 || Prefix Sum Arr...
    ►Data Structure: • Data Structures with C...
    ------------------------------------------------------------------------
    🌟 Please leave a LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟
    ✨ Tags ✨
    Introduction to the graph data structure
    Graph playlist Hello world
    Shortest Path in Unweighted Graph
    Print all paths from a given source to a destination
    Depth First Search
    Graph hello world
    Types of graphs in Data structure & algorithms
    DFS Graph
    playlist Graph Hindi
    Max Area of Island
    Maximum Area of Island
    question asked in Google
    off-campus placement
    how to learn to code for beginners
    Practice Tree data structure
    Steps by Knight
    The graph in a data structure in Hindi
    Graph Full playlist for Beginners
    algorithms
    graph
    Find the length of the largest region
    data structure
    sorting algorithms
    algorithm analysis
    Rotting Oranges
    gate computer science preparation
    programming languages
    #Graph #Leetcode #programming

КОМЕНТАРІ • 198

  • @pubgkiilerpro5244
    @pubgkiilerpro5244 Місяць тому

    i started off with graph playlist, small small challenges given by him, helped me build confidence and neat explanation helped me grasp concepts and problem solving.

  • @alihussainrizvi7684
    @alihussainrizvi7684 2 роки тому +8

    Your teaching style is magnificent. You are gonna be one of the best creator on UA-cam.

  • @easylearning6647
    @easylearning6647 Рік тому +1

    thank you for such amazing playlist. I am becoming more confident in graphs day by day.

  • @cr7johnChan
    @cr7johnChan 2 роки тому +2

    Thank You ! Always like your videos !Because of your hashing playlist , I'm now a 6 star problem solver in hackerrank, along with basic certification of problem solving . Might not b the hell of an achievement for many coders but I'm happy to b taking baby steps through your help.

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому +1

      Dil se kah raha hun dost
      You are doing great
      I am proud of you 🙂

    • @cr7johnChan
      @cr7johnChan 2 роки тому

      @@HelloWorldbyprince 🙏🏻

  • @avdharna1978
    @avdharna1978 Рік тому

    really it was good solution. i suggest every one to watch this video only for this question instead of looking at many places.

  • @sakshisisodiya9219
    @sakshisisodiya9219 2 роки тому +2

    your teaching style is so decent ...

  • @smitj6671
    @smitj6671 8 місяців тому

    kya baat hai bhaiya❤❤❤
    bohot khub ❤
    bohot achhe se samjaya hai🎉🙏❤️

  • @sleepypanda7172
    @sleepypanda7172 2 роки тому

    Genius!!! I was applying DFS first now I understood what wrong I was doing. Thanks a lot

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому +1

      keep learning like this Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

  • @jitendrapal4216
    @jitendrapal4216 4 місяці тому

    your explanation is very amazing bhaiyaa love this graph series 😍😍😍

  • @ambareenazam1816
    @ambareenazam1816 2 роки тому +2

    been following the graph series, it's amazing!

  • @psurya3053
    @psurya3053 Рік тому

    thank you bhaiyya , you are phenomenal teacher , i can understand everything clearly

  • @sarthakuiit
    @sarthakuiit 2 роки тому +1

    Bhai Great stuff, I am glad I found your channel

  • @anujgupta1553
    @anujgupta1553 2 роки тому

    Bahut mast padhate ho bhai , mazza aa jata hai appka video dekh ke

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому +1

      Thanks a lot Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

  • @Rahulverma__
    @Rahulverma__ Рік тому +1

    You r not a good teacher u r the best......

  • @nidhikumari0304
    @nidhikumari0304 8 місяців тому

    It's very good explaination. Thank You.

  • @oqant0424
    @oqant0424 2 роки тому

    now I understood ki kyu bfs lagega.....well explained

  • @rahulgautam6387
    @rahulgautam6387 2 роки тому +1

    At first time 10 cases passed out of 20 because i was not taking visited concept but after adding this i got answer , thanks and Nice explaination...

  • @MakeuPerfect
    @MakeuPerfect 2 роки тому

    bhaiya ap questions karake practice karate ho ye bohot achha lagta hai
    aise hi aur questions karao

  • @mayurichaitanya7547
    @mayurichaitanya7547 11 місяців тому

    Explaination is really amazing !

  • @ABCDEFGH-fz5ju
    @ABCDEFGH-fz5ju 8 місяців тому +1

    I think the explanation is good but need's a little bit of more enhancement
    Well thanks for the explanation of the problem 🙂

  • @keshavgaur5455
    @keshavgaur5455 Рік тому

    The way you explained it was amazing,
    Thank you 😀

  • @thetechmasum
    @thetechmasum 2 роки тому

    Watched your previous video so before your code I could imagine the the code while you were explaining the concept. 👍

  • @lapujain
    @lapujain Рік тому

    Awesome explanation, keep making good videos buddy.

  • @abhishekkumar-ef1xj
    @abhishekkumar-ef1xj 2 роки тому +1

    Beautiful Explanation.

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      Thanks ton
      Please, if possible then share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

  • @sus_tha_coder
    @sus_tha_coder 2 роки тому +2

    mast question h bhaiya... thanks

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      keep sharing my videos or channels in your colleges or groups

    • @sus_tha_coder
      @sus_tha_coder 2 роки тому

      @@HelloWorldbyprince yes brother...

  • @Playlist-cj9ct
    @Playlist-cj9ct 6 місяців тому

    I love your videos and way of explanation
    How is it returning the minimum? : it's clear now 😀

  • @nihalsingh6233
    @nihalsingh6233 11 місяців тому

    Amazing Explanation Sir !!!

  • @kalpanakathait11
    @kalpanakathait11 2 роки тому

    Thank you so much Sir! Your videos is always helpful and great.

  • @aishwaryaranghar3385
    @aishwaryaranghar3385 2 роки тому

    Thank You sir!!!! such an awesome explanation

  • @SunilGupta-qx6xe
    @SunilGupta-qx6xe Рік тому

    Great Explanation, cheers to Hello World

  • @kajalgupta-oi1bs
    @kajalgupta-oi1bs 2 роки тому

    you made it easy.
    Thank you

  • @tanveer.shaikh
    @tanveer.shaikh 2 роки тому

    Thanks Bro, i must say revision is the key

  • @shleebeez
    @shleebeez 2 роки тому

    looks great, i wish i could understand what you are saying since I don't know Hindi

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      So sorry about it, but i can help you to make your concept clear if u have any doubts or queries you can connect over on my linkedin

  • @abhisheknair5630
    @abhisheknair5630 2 роки тому

    Very well explained bhaiyya! :)

  • @radhakumari8351
    @radhakumari8351 Рік тому

    app bahut achha padhte ho

  • @utkarshchaurasia4924
    @utkarshchaurasia4924 Рік тому

    Amazing explation.

  • @joysaha1644
    @joysaha1644 Рік тому

    Thank you for the tutorial

  • @anirbandutta9166
    @anirbandutta9166 2 роки тому +1

    that was a great explanation :)

  • @salonibhardwaj3200
    @salonibhardwaj3200 Рік тому

    nice explanation bhaiya

  • @sudhanshukumar3745
    @sudhanshukumar3745 2 роки тому +1

    great video keep doing the good work

  • @DeepakKumar-oz5ky
    @DeepakKumar-oz5ky 3 місяці тому

    great video bhaiya

  • @kumkumjain7588
    @kumkumjain7588 2 роки тому

    very good explanation
    Please discuss about time complexity

  • @AJAYSINGH-ty9rt
    @AJAYSINGH-ty9rt 2 роки тому +1

    U r just awesome ❤️

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      Please, if possible then share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

  • @pursottamsah6430
    @pursottamsah6430 Рік тому

    Nicely Explained :)

  • @Aks-47
    @Aks-47 2 роки тому +2

    1:23 is a common problem 😂😂Ekdum pakda bhai ne! Bfs toh acche se aata tha... Par chess dekha pehele kabhi, toh fati thi 😂

  • @himanshusahu7165
    @himanshusahu7165 2 роки тому

    Nice Explanation using graph

  • @rode_atharva
    @rode_atharva 4 місяці тому

    great videos sir

  • @samwaadvivaad8607
    @samwaadvivaad8607 2 роки тому

    bhai mza aagya keep solving

  • @lakshaysharma8144
    @lakshaysharma8144 2 роки тому

    Great explanation dude.

  • @tusharbhardwaj4201
    @tusharbhardwaj4201 2 роки тому +2

    Bhai ma guarantee ka sath khra ana wale time ma tumhare channel ka bhot naam hoga
    Kyuki kamaal ka phadate ho tum

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому +1

      Ayeee hayeeee.... Tushar
      Thanks bhai 🥰
      Aise wo time kab aayega ?

  • @riyazsayyad4047
    @riyazsayyad4047 Рік тому

    Great Explanation !!!

  • @adarshrajput8590
    @adarshrajput8590 2 роки тому

    very nicely explained

  • @RAHULYADAV-zr5fq
    @RAHULYADAV-zr5fq 2 роки тому

    Jabardast bhaiya!!

  • @prabhatmishra6753
    @prabhatmishra6753 2 роки тому +1

    Very Well Explained

  • @rajanjain1156
    @rajanjain1156 Рік тому

    Bhaitreen bhai 🤘

  • @AkshatAwasthi-g3c
    @AkshatAwasthi-g3c 11 місяців тому

    grate explanation sir

  • @aashishsah2110
    @aashishsah2110 2 роки тому +1

    Great Video!!

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      Please, if possible then share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

  • @sunandachowdhury1455
    @sunandachowdhury1455 Рік тому

    Thanks a lot!

  • @sudhadevi6692
    @sudhadevi6692 Рік тому +1

    Mai pagal jan Bhuj kr dfs lga raha tha but adhe test case pass hue bhaiya. 😂
    Fir bfs hi lgayai😂.
    Thx 4 the lecture bhaiya.❤

  • @aniruddhadas1778
    @aniruddhadas1778 2 роки тому

    Very good explanation brother 🖤

  • @VivekKumar-ui1ro
    @VivekKumar-ui1ro Рік тому

    Awesome channel

  • @anonymous090
    @anonymous090 2 роки тому

    Thank you, Bhaiya!

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому +1

      Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

    • @anonymous090
      @anonymous090 2 роки тому

      @@HelloWorldbyprince sure 😇

  • @roinskitty
    @roinskitty 2 місяці тому

    Thank you.

  • @adarshbhende
    @adarshbhende 9 місяців тому

    nice explenation

  • @raisanjeeb42
    @raisanjeeb42 2 роки тому

    Nice Explanation

  • @gitanksagar1323
    @gitanksagar1323 2 роки тому

    achha content hai bhai

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      Thanks a ton Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

  • @jatilyadav4000
    @jatilyadav4000 2 роки тому

    thank you soo much bhaiya

  • @raunak6023
    @raunak6023 2 роки тому

    well explained😃😃😃

  • @SumanKumar-xn8tz
    @SumanKumar-xn8tz 2 роки тому

    good explanation

  • @yuvrajagarkar8942
    @yuvrajagarkar8942 Рік тому

    loved it,
    Can you answer this question
    What is the right way to solve gfg ???
    like should i solve topic wise or random ?
    also gfg pe ache practice hoga na or i need to do leetcode ?

    • @HelloWorldbyprince
      @HelloWorldbyprince  Рік тому +1

      u can move with leetcode if u have such a confusions
      and if u r watching my pplaylist, tab aapke saree doubts clear ho jayenge
      i will recommend u to start with my hashing playlist

  • @jatilyadav4000
    @jatilyadav4000 2 роки тому

    great video..

  • @ZuisineZiyi
    @ZuisineZiyi Рік тому

    wonderful videos : |)

  • @utkarsh-k6p
    @utkarsh-k6p 2 роки тому

    good one 💥

  • @316_mohammadahadkhan7
    @316_mohammadahadkhan7 Рік тому

    Bhai Can you make a video asap , how to domain switch like from cyber to software for early professionals. That would be very helpful.

  • @jonas9375
    @jonas9375 Рік тому

    Understood!!!!

  • @WatcherVerse
    @WatcherVerse 2 роки тому

    Nice explanation!
    what will be time complexity if we apply DFS(just curious)?

  • @aadityakumar2296
    @aadityakumar2296 Рік тому

    vectorvisited(n,vector(n,false)); i didint understand this code

    • @aadityakumar2296
      @aadityakumar2296 Рік тому

      plz anyone help me up with this code

    • @Abhishek-ys2io
      @Abhishek-ys2io Рік тому

      When we initalize a vector we write :
      vector v(n, 5);
      It means n is size of vector and all values of this vector is initalize by 5.
      When we write :
      vector visited(n, vector (n, false));
      It means visited is vector of vectors and it's size is n and is initialized by vectors of size n and all having false value.

  • @nitubhai786
    @nitubhai786 Рік тому

    thanku bhaiya

  • @prasannapm3220
    @prasannapm3220 2 роки тому

    thank you

  • @hassanadil6649
    @hassanadil6649 2 роки тому +2

    Brother I believe one day only because of your videos I will land my dream job at amazon / google IA, you are doing a great job don't ever stop it.
    Love from across the border..!!

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому +1

      Best of luck I am with you
      keep sharing my videos in your colleges

    • @sudhadevi6692
      @sudhadevi6692 Рік тому +1

      So where r u now bro😂😅

  • @SajanKumar-ec2us
    @SajanKumar-ec2us 7 місяців тому

    Dry run se feel nahi aa raha.disscuss time complexity

  • @himanshusahu6879
    @himanshusahu6879 Рік тому +1

    nice

  • @ankur6310
    @ankur6310 Рік тому

    I wrote the same code but it is giving TLE error in half test cases :
    bool valid(int i,int j,int n,vector visit){
    if(i>=0 && i=0 && j0){
    int x=q.front().first;
    int y=q.front().second;
    q.pop();
    for(int i=0;i

  • @deep1998-j1v
    @deep1998-j1v 9 місяців тому

    hi bhaiya, when i try to solve with these directions i got error while submitting:
    int[] ax = {1,-1,2,2,-1,1,-2,2};
    int[] ay = {2,2,1,-1,-2,-2,-1,1}; but in the solution they are going in this directions:
    int dx[] = { -2, -1, 1, 2, -2, -1, 1, 2 };
    int dy[] = { -1, -2, -2, -1, 1, 2, 2, 1 };, and with this its working fine,
    But why,?? anyway my code also going in all directions, im confused here, any help would be really appreciated.

    • @AWPologize
      @AWPologize 8 місяців тому +1

      lol same, happened to me as well. it's probably because of the test cases written on leetcode.

  • @vivekbhand7255
    @vivekbhand7255 2 роки тому

    Great

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      Thanks bro Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀

  • @somveerkhaunkar6191
    @somveerkhaunkar6191 2 роки тому

    Very nyc explanation brother /\ /\

  • @aditiagarwal3222
    @aditiagarwal3222 2 роки тому

    What will be the time complexity for this code?

  • @mithleshkumar-ds9ex
    @mithleshkumar-ds9ex Рік тому

    Why this question give segmentation fault when done by dyanmin programing'

  • @sarveshkulkarni6287
    @sarveshkulkarni6287 Місяць тому

    Video starts at 1.54 , Thank me later

  • @tanishkumar6682
    @tanishkumar6682 Рік тому

    understood

  • @Kashiskthakur
    @Kashiskthakur 2 роки тому

    how are we determining the steps we got is minimum ???

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      because humko sabhi path pe jaa rhe hai ek sath jiss raste se pahle mil jaa rha hai
      we declared we got the minimum
      kashis i will recommend u
      aap graph ki playlist starting se dekho and step by step Dry run karo code ko copy and pen se

    • @Kashiskthakur
      @Kashiskthakur 2 роки тому

      @@HelloWorldbyprince thank you very much for your explaination. and I will go through the entire playlist. Thanks again for your wonderful explaination.

  • @oqant0424
    @oqant0424 2 роки тому

    25/32 done

  • @AbhijeetSingh-s7g
    @AbhijeetSingh-s7g Рік тому

    bhai sab samjh aa rhaa hai. tention mt lo

  • @ashwinikumarpandey3475
    @ashwinikumarpandey3475 2 роки тому

    dfs se kya problem aati?

    • @HelloWorldbyprince
      @HelloWorldbyprince  2 роки тому

      i have complete the whole playlist and created whole set of questions
      please see the description of any video

  • @saurabhtiwari9653
    @saurabhtiwari9653 Рік тому

    ❤️

  • @RohitRaj-od3be
    @RohitRaj-od3be Рік тому

    Why it is giving TLE bhaiya??

  • @shubamgoswami
    @shubamgoswami 2 роки тому

    done

  • @MaayankMavericks888
    @MaayankMavericks888 2 роки тому

    GR8

  • @PranavPrajapati-hd2eu
    @PranavPrajapati-hd2eu 2 роки тому

    Size -- kyu kiya

  • @shreyanshgupta4422
    @shreyanshgupta4422 2 роки тому

    bhaiya this coding is getting TLE.