Connect with us

Tech Trends

Graph Algorithms for Technical Interviews – Full Course

Published

on



Learn how to implement graph algorithms and how to use them to solve coding challenges.

✏️ This course was developed by Alvin Zablan from Structy. Check out Alvin’s channel: https://www.youtube.com/c/AlvinTheProgrammer

🔗 Learn data structures and algorithms: https://structy.net/

❤️ Try interactive Algorithms courses we love, right in your browser: https://scrimba.com/freeCodeCamp-Algorithms (Made possible by a grant from our friends at Scrimba)

⭐️ Course Contents ⭐️
⌨️ (0:00:00) course introduction
⌨️ (0:02:23) graph basics
⌨️ (0:07:10) depth first and breadth first traversal
⌨️ (0:29:13) has path – https://structy.net/problems/has-path
⌨️ (0:42:11) undirected path – https://structy.net/problems/undirected-path
⌨️ (1:00:44) connected components count – https://structy.net/problems/connected-components-count
⌨️ (1:13:29) largest component – https://structy.net/problems/largest-component
⌨️ (1:24:03) shortest path – https://structy.net/problems/shortest-path
⌨️ (1:39:36) island count – https://structy.net/problems/island-count
⌨️ (1:58:52) minimum island – https://structy.net/problems/minimum-island
⌨️ (2:12:05) outro

🎉 Thanks to our Champion and Sponsor supporters:
👾 Wong Voon jinq
👾 hexploitation
👾 Katia Moran
👾 BlckPhantom
👾 Nick Raker
👾 Otis Morgan
👾 DeezMaster
👾 Treehouse
👾 AppWrite

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

source

Continue Reading
42 Comments

42 Comments

  1. @CraftAndCodee

    April 15, 2025 at 5:00 am

    At the largest component problem while running the code I got answer 5 when I convert visited as String I got the correct . Anyone please tell me I have paste my code below .
    const largestComponent = (graph1) => {

    let largest = 0;

    let visited = new Set();

    for (let node in graph1) {

    const size = exploreSize(graph1, node, visited);

    if (size > largest) largest = size;

    }

    return largest;

    };

    const exploreSize = (graph1, current, visited) => {

    if (visited.has(String(current))) return 0;

    visited.add(String(current));

    let size = 1;

    for (let neighbour of graph1[current]) {

    size += exploreSize(graph1, neighbour, visited);

    }

    return size;

    };

  2. @BG-eng

    April 15, 2025 at 5:00 am

    That was a great explanation of DFS and BFS! 😊

  3. @Themaxmerock007

    April 15, 2025 at 5:00 am

    GOAT content! thank you Alvin and freeCodeCamp!

  4. @kirank3368

    April 15, 2025 at 5:00 am

    This man is a genius and a wonderful teacher 🥰

  5. @pradeeshbm5558

    April 15, 2025 at 5:00 am

    That's the god level Graph tutorial.

  6. @rashmin9705

    April 15, 2025 at 5:00 am

    I love the progression he takes, starts off from the very basic and builds up on it , that everything just sinks in! Thankk you so much Alvin!!

  7. @adeniyitaofik3832

    April 15, 2025 at 5:00 am

    AMAZING

  8. @santoshkumak

    April 15, 2025 at 5:00 am

    🙏🙏🙏🙏You are doing greatest help on mankind. I will explore all your courses.

  9. @arunbala9009

    April 15, 2025 at 5:00 am

    I have cleared my first round of interview.
    This video helped a lot. Thanks!

  10. @YipLseventy7

    April 15, 2025 at 5:00 am

    amazing examples, really helped me understand BFS when cramming for CCC

  11. @viniciusfilenga4730

    April 15, 2025 at 5:00 am

    what a gem of a course

  12. @staywithmeforever

    April 15, 2025 at 5:00 am

    10:34 that is wrong basically u move right until u cant, then if u move down first u will check if u can move right inthis case we cant we go down and at bottom we cant mover right or down we move left and then we should move right not left .

  13. @igustingurahokaprinarjaya7482

    April 15, 2025 at 5:00 am

    Hi @alvintheprogrammer,
    DF traverse recursive version output was not equals with DF traverse non-recursive version.

  14. @danieladigun2696

    April 15, 2025 at 5:00 am

    This is an incredibly straight forward and simple to understand graph video. This video definitely made me clean up rough edges in my understanding of tackling graph DSA problems. Thank you !!

  15. @chiomaubogagu7732

    April 15, 2025 at 5:00 am

    This course was incredibly helpful and so well done. Thanks so much! Alvin, you're a phenomenal teacher!!

  16. @aditi1786

    April 15, 2025 at 5:00 am

    50 mins in and THIS IS THE BEST VIDEO ON THE INTERNET handsdown!!
    Thank you so much

  17. @d69p-eix

    April 15, 2025 at 5:00 am

    I would never hire someone who uses arrays, sets or dictionaries to solve these trivia problems

  18. @TheDima23

    April 15, 2025 at 5:00 am

    Amazing course ! thank you so much for this.

  19. @RaduViorelCosnita

    April 15, 2025 at 5:00 am

    This is truly awesome. Thank you so much for this nice video and well explained algorithms.

  20. @Singh54321

    April 15, 2025 at 5:00 am

    1:19:56 longest = Math.max(longest,size) can be used

  21. @Singh54321

    April 15, 2025 at 5:00 am

    the voice, he style of teaching , the animations and visuals absolutely phenomenal. love it

  22. @mahimapatel8706

    April 15, 2025 at 5:00 am

  23. @Emanuel-yb3qk

    April 15, 2025 at 5:00 am

    Best teacher ever. Thanks for this.

  24. @TrevorSullivan

    April 15, 2025 at 5:00 am

    Extremely high quality presentation! Well done

  25. @kavan3

    April 15, 2025 at 5:00 am

    34:29 for anyone confused here, the graph in the example given is incorrect. number of edges is not n^2. To show a graph with n^2 edges each node needs to point to every other node AND also point to itself

  26. @Dani-zf7cu

    April 15, 2025 at 5:00 am

    Thank you Alvin! I've been trying to grind leetcode and DSA for interviews, and this video as well as your binary trees video was so amazingly helpful and way more efficient than blindly doing problems to help me strengthen the fundamentals, and in particular, I was really struggling with handling how to handle graphs in the form of a matrix rather than an adjacency list — I typically tried to convert it into an AL unnecessarily, but watching this video, especially the numIslands section, made things just click. You also have given me so much of a better understanding and less fear of recursion, even going to appreciation of recursion! That's crazy.

    Also, for the numIslands problem, to save a bit on space, I got rid of the visited set and just set grid[row][col] == 'V' to mark that it's visited, and only add where grid[row][col] == L. This worked.

  27. @JayDee-b5u

    April 15, 2025 at 5:00 am

    Not sure how the first depthFirstSearch is supposed to end. Doesn't seem like anything ever gets popped from the stack.

  28. @ohmegatech666

    April 15, 2025 at 5:00 am

    Just have to agree with others that this is one of if not the best course on graph problems out there. Like many, I was intimidated by graph problems early on but this video has made me so much more comfortable with them. I feel like I actually understand them at a deep level now.

  29. @ohmegatech666

    April 15, 2025 at 5:00 am

    I was confused when you started going through depth first search because you put both of A's neighbors B and C on the stack which seems to be breadth first. But what helped me to understand is the fact that the loop starts when we pop a node from the stack, not when we add it to the stack. The stack doesn't represent which node we are currently "at", the node we pop from the stack does that. The stack is just an in between step. So we don't actually "go to" C at first, we just add it to the stack for now. We do "go to" B because we pop it from the stack

  30. @thewildweb

    April 15, 2025 at 5:00 am

    This is really a damn refresher

  31. @kumarankit9243

    April 15, 2025 at 5:00 am

    alvin👍👍

  32. @avitwito1734

    April 15, 2025 at 5:00 am

    amazing tutor, The best I've seen

  33. @celeb_intel

    April 15, 2025 at 5:00 am

    I like his lecture, learn a lots, thanks man.

  34. @ChandrapalSd

    April 15, 2025 at 5:00 am

    Thanks
    You made it really
    easy

  35. @jerry861200

    April 15, 2025 at 5:00 am

    I am currently struggling with studying graphs, and you are my savior.

  36. @fandibataineh4586

    April 15, 2025 at 5:00 am

    great video, but i have a minor comment
    at 1:00:34, look at the hasPath function, i would swab the first 2 lines (line 7 and 8), which represent our 2 atomic cases, this way you can use the function to check whether there is a path from src to dst that does not pass through node x, or nodes {x, y, z}

    by calling the function with the visited set already populated with the nodes you want to exclude, this would not work with the current implementation but it still works fine

  37. @chaitanyashahare2734

    April 15, 2025 at 5:00 am

    This video is game changer!!

  38. @vaseemshaik4899

    April 15, 2025 at 5:00 am

    How is this stuff free?

  39. @xmn10

    April 15, 2025 at 5:00 am

    This is awesome, Thank you.

  40. @David___4n6e

    April 15, 2025 at 5:00 am

    Scientific insights: the significance of refund information

  41. @James__052j

    April 15, 2025 at 5:00 am

    Poetic revelation: the essence of refunds

  42. @exploregeographics

    April 15, 2025 at 5:00 am

    Excellent++ Thanks for the course.

Leave a Reply

Your email address will not be published. Required fields are marked *

Tech Trends

5 Geospatial Tech Trends Revolutionizing 2025

Published

on



🌍 The Geospatial Tech Revolution is Here! 🚀
In this video, we explore 5 major trends in geospatial technology that are transforming business intelligence and data analysis. From AI-powered maps to real-time data services, discover how these innovations are shaping smarter decisions across industries.

🔍 Want to stay updated on the latest in geospatial tech?
👉 Follow Ecospatial for more cutting-edge insights and updates!

#geospatialanalysis #ai #businessintelligence #innovation #techtrends #datascience #smartcities #gis

source

Continue Reading

Tech Trends

Gajab Hack for Content Writers🔥🔥 | #EdShorts 192

Published

on



☑️Check out Edvisor: https://link.labourlawadvisor.in/edvisor
☑️Edvisor Instagram: https://www.instagram.com/youredvisor/?hl=en

Don’t forget to Like, Share and Subscribe
__________________
Edited by📽️: Ikjot Singh
Host👨‍🦰: Rahul Sharma
____________________
PLAYLISTS :
Power Shorts by Edvisor: https://youtube.com/playlist?list=PL6Ub8QiwwyWgUyh1dbFQB7A2PKTXVmIk6
____________________
#Edshorts #edvisor #contentwriting #contentwriters

source

Continue Reading

Tech Trends

China technology

Published

on



#short #shortvideo #shortsvideo #shortsfeed #shortsyoutube #shortsbeta #shortsvideos #shorts #youtubeshorts #youtube #youtubechannel #youtubers #youtubevideos #foryoupage #foryou #trending #trendingshorts #trendingvideo #trendingstatus #video #viralshorts #viralvideo #viral_video #technology #shortfeed #shortfeed2022 #shortfeeds
#short #shortsfeed

source

Continue Reading

Tech Trends

CMF Phone 2 Pro Unboxing – Totally Different Phone !

Published

on



alag alag alag

🔥 Subscribe for Tabahi Videos

CMF Phone 2 Pro by Nothing is set to shake up the budget smartphone market in 2025 with its unique design and powerful hardware. Featuring a customizable back panel, Nothing OS 2.6 based on Android 14, and a focus on clean software and smooth performance, the Phone 2 Pro brings the signature Nothing experience to the CMF lineup.

Powered by the MediaTek Dimensity 7300 processor, the CMF Phone 2 Pro is expected to deliver reliable everyday performance and 5G connectivity, paired with a 120Hz AMOLED display, dual rear cameras, and a large 5000mAh battery with fast charging. Ideal for those looking for style, software fluidity, and long battery life, this phone competes directly with Redmi Note 13 Pro, Realme Narzo 80 Pro, and iQOO Z10 5G.

Whether you’re buying during Flipkart Big Billion Days, Amazon Great Indian Festival, or seeking a minimalist phone with near-stock Android, the CMF Phone 2 Pro delivers premium design and essentials without bloat.

Stay tuned for full reviews, camera samples, gaming tests, and pricing updates. If you’re looking for the best phone under ₹15,000–₹20,000

INSTAGRAM ► http://instagram.com/techburner
TWITTER ► https://twitter.com/tech_burner
FACEBOOK ► https://www.facebook.com/techburner1

source

Continue Reading

Tech Trends

[ChatGPT챌린지] Ai끼리 대화가 가능할까? #chatgpt #ai #재미있는 #실험

Published

on



Open Ai의 ChatGPT 앱으로 보이스 모드를 이용해서 Ai끼리 대화가 가능한지 실험해보았습니다. 사용한 기기는 아이폰과 갤럭시이고 둘다 ChatGPT Plus 구독된 상태에서 진행했습니다.
#ChatGPT #ai #재미있는 #실험 #ChatGPT챌린지

source

Continue Reading

Tech Trends

The 5 Biggest Tech Trends in 2023 Everyone Must Be Ready For #Shorts

Published

on



Head to my #TikTok to view more videos like this 😊 @BernardMarr

source

Continue Reading

Trending