Unique Paths - Leetcode 62 - Dynamic Programming (Python)
Greg Hogg
@greghoggAbout
Hey there - my name is Greg Hogg, a statistics alumni from the University of Waterloo in Ontario, Canada. I'm an ex-AI researcher who's published medical papers with Deepbreathe.ai, a startup that continues to win awards in the US military due to my and other's research. I still do AI contracts with companies like Nvidia, HP, and other big names today. I'm most known as a popular coding teacher online for interview skills like DSA and System Design, with over 150 million organic views and 650k+ followers in the space. My day job is running MLNOW Inc (which owns Algomap.io), where I help busy individuals get into the world's best software engineering roles at companies like FAANG. My company's website Algomap has over 75,000 users and a personalized live program tailored to cracking FAANG.
Latest Posts
Video Description
Master Data Structures & Algorithms for FREE at https://AlgoMap.io/ Code solutions in Python, Java, C++ and JS for this can be found at my GitHub repo here: https://github.com/gahogg/Leetcode-Solutions/blob/main/ Complete DSA Pathway Zero to Hero: https://www.youtube.com/playlist?list=PLKYEe2WisBTFEr6laH5bR2J19j7sl5O8R Please check my playlists for free DSA problem solutions: https://www.youtube.com/playlist?list=PLKYEe2WisBTGq9T0wPulXz1otUsVeOGey https://www.youtube.com/playlist?list=PLKYEe2WisBTFlP0RlwfwPrdkvHrcTBUg- https://www.youtube.com/playlist?list=PLKYEe2WisBTEK8_GVXySX9aDWBHk5fGwQ https://www.youtube.com/playlist?list=PLKYEe2WisBTFZH-p9jgAOwtHy9_LGI28W https://www.youtube.com/playlist?list=PLKYEe2WisBTH7I9sCPjSZCs-iBAH4ybmS https://youtube.com/playlist?list=PLKYEe2WisBTH601scI_A008gm34oARlIp&si=DnCpq_RiFkObYn7p https://www.youtube.com/playlist?list=PLKYEe2WisBTF21RGRtZfGGolpHmca_d3N https://www.youtube.com/playlist?list=PLKYEe2WisBTH48RzVCL_LQrGW-ahPY44S https://www.youtube.com/playlist?list=PLKYEe2WisBTHcWHAGWvKJuVMu5ElMA18M https://www.youtube.com/playlist?list=PLKYEe2WisBTEY7eJBW7W-jbxlXCGb928P https://www.youtube.com/playlist?list=PLKYEe2WisBTHCmJ6IfEMjg8o--Bvfc5gt https://www.youtube.com/playlist?list=PLKYEe2WisBTFw-XWc-kwS3dkQeeSmvpg5 My Data Science & ML YouTube Playlist: https://youtube.com/playlist?list=PLKYEe2WisBTECZ8mZCfFxzrBBuGrS1Gfu&si=hspEoaBIyVLV_TyC Learn Python and Data Science FASTER at https://mlnow.ai :) Support the content: https://www.youtube.com/channel/UCJublDh2UsiIKsAE1553miw/join Follow me on Instagram: https://www.instagram.com/greghogg5/ Connect with me on LinkedIn: https://www.linkedin.com/in/greghogg/ Follow me on TikTok: https://www.tiktok.com/@greghogg5 Coursera Plus: https://imp.i384100.net/P0E3J6 My Favorite Courses: Data Structures & Algorithms: - UCalifornia San Diego DSA: https://imp.i384100.net/LP31oV - Stanford Algorithms: https://imp.i384100.net/vNBoxd - Python Data Structures: https://imp.i384100.net/NkZn47 - Meta Coding Interview Prep: https://imp.i384100.net/Y96rBJ Python: - UMichigan Python for Everybody: https://imp.i384100.net/QOLM73 - Python Mastery from MLNOW.ai: https://mlnow.ai/course-material/python/ - Google IT Automation w/ Python: https://imp.i384100.net/5g6Xyj Web Dev / Full Stack: - Meta Front-End Developer: https://imp.i384100.net/q4Jemy - IBM Full Stack Developer: https://imp.i384100.net/Gj9dMn - Meta Back-End Developer: https://imp.i384100.net/xkW0r5 - John Hopkins HTML, CSS & JS: https://imp.i384100.net/QyoRAA - IBM DevOps: https://imp.i384100.net/kjd2r0 Cloud Development: - AWS Fundamentals: https://imp.i384100.net/anqBjZ - GCP Cloud Engineer: https://imp.i384100.net/g1jvqB - Microsoft Azure Fundamentals: https://imp.i384100.net/EKm5O4 Game Development: - Michigan State Unity Development: https://imp.i384100.net/6eOBnr - UColorado C++ for Unreal Engine: https://www.coursera.org/specializations/cplusplusunrealgamedevelopment SQL & Data Science: - SQL by MLNOW.ai: https://mlnow.ai/course-material/sql/ - Python for Data Science by MLNOW.ai: https://mlnow.ai/course-material/datascience/ - Google Data Analytics: https://imp.i384100.net/1rkWAR - IBM Data Science: https://imp.i384100.net/P0ZRL6 - IBM Data Engineer: https://imp.i384100.net/4PbZyZ Machine Learning & AI: - ML Mastery at MLNOW.ai: https://mlnow.ai/course-material/ml/ - ML w/ Andrew Ng: https://www.coursera.org/specializations/machine-learning-introduction - Deep Learning w/ Andrew Ng: https://imp.i384100.net/a1kjJj
PC Gaming on a Budget
AI-recommended products based on this video

acer Aspire 3 Laptop | 15.6" FHD (1920 x 1080) Display | 8-Core AMD Ryzen 7-5700U | AMD Radeon | 64GB RAM | 4.5TB SSD (4TB PCIe SSD withHP P500 512GB Portable SSD) | Ethernet Port | Windows 11 Pro

acer Aspire 3 Laptop | 15.6" FHD (1920 x 1080) Display | AMD Radeon | 8-Core AMD Ryzen 7-5700U | 64GB RAM | 4.5TB SSD (4TB PCIe SSD withHP P500 512GB Portable SSD) | Ethernet Port | Windows 11 Pro

Lenovo IdeaPad 3 Laptop| Intel Core i7-1255U Processor| Touchscreen| 15.6 inch Full HD Display| 40GB RAM, 1TB PCIe SSD|USB-C, HDMI, Card Reader| Office Trial| Backlit Keyboard| Windows 11

Lenovo V-Series V15 Business Laptop | 15.6" FHD 1920 * 1080 | 13th Gen Intel Core i7-13620H | 40GB RAM | 1TB SSD | Webcam | Wi-Fi 6 | Windows 11 Pro | Black | Bundle with ADATA 512GB External SSD

Lenovo IdeaPad 15.6” FHD Touchscreen Laptop, 40GB RAM 2.5TB Storage (2TB SSD+512GB Docking Station Set), 6-Cores Intel Core i3, Windows 11 Pro with Microsoft Office Included, Plusera Earphones

Lenovo 2025 New Touchscreen Laptop • 6-Cores Intel Core i3 • 40GB RAM • 2TB SSD • 15.6 inch FHD (1920 x 1080) Display • Long Battery Life • WOWPC Recovery USB • Windows 11 Pro with Microsoft Office

G.SKILL Ripjaws DDR4 SO-DIMM Series DDR4 RAM 32GB (2x16GB) 2400MT/s CL16-16-16-39 1.20V Unbuffered Non-ECC Notebook/Laptop Memory SODIMM (F4-2400C16D-32GRS)
![Ailun 3 Pack for iPhone 17 Pro Max Privacy Screen Protector [6.9 inch] with installation frame, Anti Spy Private Tempered Glass Anti-Scratch Case Friendly Global Recycled Standard](https://m.media-amazon.com/images/I/71R6PqYJJxL._AC_UY654_FMwebp_QL65_.jpg)
Ailun 3 Pack for iPhone 17 Pro Max Privacy Screen Protector [6.9 inch] with installation frame, Anti Spy Private Tempered Glass Anti-Scratch Case Friendly Global Recycled Standard

daydayup Switch Case and Tempered Glass Screen Protector Compatible with Nintendo Switch - Deluxe Hard Shell Travel Carrying Case, Pouch for Nintendo Switch Console & Accessories, Streak Red
![Ailun 3 Pack Screen Protector for iPhone 17 Pro Max [6.9 inch] with Installation Frame, Tempered Glass, Sensor Protection, Dynamic Island Compatible, Case Friendly Global Recycled Standard](https://m.media-amazon.com/images/I/71XuFtl2aBL._AC_UY654_FMwebp_QL65_.jpg)
Ailun 3 Pack Screen Protector for iPhone 17 Pro Max [6.9 inch] with Installation Frame, Tempered Glass, Sensor Protection, Dynamic Island Compatible, Case Friendly Global Recycled Standard

amFilm Tempered Glass Screen Protector Compatible with Nintendo Switch 2 7.9" 2025 Alignment Installation Frame Transparent HD Clear Case Accessories Anti-Scratch (3-Pack) (SWTCH2-7.9")

acer Nitro V 15 Gaming Laptop, Intel i9-13900H Up to 5.4GHz, GeForce RTX 4060, 15.6" 144 Hz IPS Display, 64 GB DDR5, 4 TB SSD, Wi-Fi 6, Backlit Keyboard, Windows 11 Pro, Gaming Mouse, 256GB UFD

Funny Cute Mouse Pad with Wrist Rest, Dumpster on Fire Ergonomic Mouse Pads Wrist Support for Desk, Mousepad for Wireless Mouse Gaming Laptop Work Home Desk Accessories Office Supplies Decor

MSI Thin 15 Gaming Laptop, 15.6" 144 Hz IPS Display, AMD Ryzen 9 8945HS, NVIDIA RTX 4060 8GB GDDR6, 32 GB DDR5, 2 TB SSD, with Windows 11 Pro, Office Pro Lifetime License, Mouse, USB C Flash Drive

acer Nitro V Gaming Laptop, 15.6" FHD IPS 144 Hz Display, Intel 14-Core i9-13900H, 64 GB DDR5 RAM, 4 TB SSD, GeForce RTX 4060, Wi-Fi 6, Backlit Keyboard, Windows 11 Pro, with Designed Accessories

acer Nitro V 15 Gaming Laptop,15.6" FHD IPS 144 Hz, Intel 10-i7-13620H, Office Lifetime License, 64GB DDR5, 4TB SSD, GeForce RTX 4060, Wi-Fi 6, Backlit Keyboard, Win 11 Pro, w/Accessories

acer Predator Helios Neo 16 Gaming Laptop,16" WQXGA IPS 240Hz 500 nits Display, 14th Gen Intel i9-14900HX, GeForce RTX 4070, 64 GB DDR5, 4 TB SSD, Backlit KB, Win 11 Pro, with Designed Accessories














