2 months ago โ€ข NeetCode

I added 15 LeetCode style problems for Machine Learning to NeetCode IO ๐Ÿš€

You can solve problems ranging from Gradient Descent, to learning PyTorch basics, and ultimately code a simplified GPT chat bot.

All within your browser. No ML or Math background necessary.

๐ŸŽฅ There are video explanations to give you the background needed for each problem as well as the solutions.


Btw, itโ€™s completely free so try it out:  https://neetcode.io/practice?subpage=practice&tab=coreSkills&topic=Machine%20Learning&utm_source=linkedin 


This was added in collaboration with  @GPTandChill   who created the problems and solutions. Big thank you to him. 

2 months ago (edited) โ€ข NeetCode

Over 6% of LeetCode's traffic now comes from me. That's nuts!! ๐Ÿฅœ


If you're studying for coding interviews & you're not using  https://neetcode.io/  you may want to reconsider :)

---

It seems the next logical step for me would be to remove the dependency on leetcode. Or at least allow you to solve problems without navigating away (for free ofc). What do you guys think? 

4 months ago โ€ข NeetCode

Just hit 600K subs... and embarrassingly only uploaded 11 times this year. 


Thank you so much for joining me for the ride! Next stop 1 million ๐Ÿš€ (i just want the gold YT play button)

---

FYI I did upload ~200 videos on the second channel this year:   @NeetCodeIO 

4 months ago โ€ข NeetCode

I recently coded a simplified Youtube clone for my full stack development course - hereโ€™s how:





๐Ÿชฃ Cloud Storage - An object storage solution used to upload and serve videos to users.



๐Ÿƒ Cloud Pub/Sub - An auto-scaling message queue used to queue raw videos before they can be transcoded.


๐ŸŽฅ Cloud Run (video transcoding workers) - A managed service for Docker containers. Used to run a set of workers which transcode raw videos into different resolutions via FFmpeg (popular open source transcoding tool).


๐Ÿ’Ž Cloud Run (nextjs client) - I built the UI with NextJS and served it from Cloud Run for simplicity and auto-scaling.


๐Ÿ”ฅ Firestore - A document-based database used to store app data including user info, video metadata, etc.


๐Ÿ’ป Firebase Functions - Serverless functions (AWS lambda equivalents) used to build a REST API for the client to fetch urls of processed videos.




There's a reason most online tutorials only show you how to clone an app's frontend. Even though I relied heavily on managed cloud services, this project is FAR from production ready.





๐€ ๐Ÿ๐ž๐ฐ ๐ฅ๐ข๐ฆ๐ข๐ญ๐š๐ญ๐ข๐จ๐ง๐ฌ:
- Videos that take > 600 seconds to process will cause issues (because I used simple Push-based subscriptions rather than Pull-based)
- GCS provides very barebones video streaming capabilities. YouTube actually uses DASH (Dynamic Adaptive Streaming over HTTP) to stream videos, meanwhile Netflix uses HLS (HTTP Live Streaming)





๐Œ๐จ๐ซ๐š๐ฅ ๐จ๐Ÿ ๐ญ๐ก๐ž ๐ฌ๐ญ๐จ๐ซ๐ฒ: Building something that works is easy. Building something that rarely fails is hard.




Check out the full course where I walk you through how to build this project from scratch:  https://neetcode.io/courses/full-stack-dev/0 

5 months ago โ€ข NeetCode

8 coding design patterns explained using real-world analogies.





(I also created a Leetcode style problem to implement each of these yourself - link at the end of this post).




๐‚๐ซ๐ž๐š๐ญ๐ข๐จ๐ง๐š๐ฅ ๐๐š๐ญ๐ญ๐ž๐ซ๐ง๐ฌ


1. Factory Method - Abstract away the details of constructing complex objects.
- Restaurants - you just order and receive the prepared food ๐Ÿฅ—


2. Builder - A simple interface for constructing complex objects, which also allows fine-grained control on how itโ€™s constructed (unlike Factory).
- Ordering food at Subway or Chipotle - you specify each ingredient but donโ€™t have to make it yourself ๐Ÿฅช


3. Singleton - Enforce that at most one instance of a class may exist.
- Countries usually have at most one government (and sometimes none) ๐Ÿ›๏ธ




๐๐ž๐ก๐š๐ฏ๐ข๐จ๐ซ๐š๐ฅ ๐๐š๐ญ๐ญ๐ž๐ซ๐ง๐ฌ


1. Strategy - At runtime a strategy (algorithm) can be choosen & supplied to objects to modify their behavior.
- Snapchat & Instagram filters let you choose which animal you want to look like ๐Ÿถ

2. Observer - Objects (observers) can listen for changes to another object (Subject), and be notified whenever changes occur.
- When you click the bell icon on my profile page ๐Ÿ˜‰ you get a push notification whenever I post.



๐’๐ญ๐ซ๐ฎ๐œ๐ญ๐ฎ๐ซ๐š๐ฅ ๐๐š๐ญ๐ญ๐ž๐ซ๐ง๐ฌ


1. Adapter - Allow two otherwise incompatible objects to work together.
- Macbooks only have USB-C ports, but using adapters they are compatible with other connectors like USB-A ๐Ÿ’ป


2. Decorator - Add or modify behavior of an object at runtime without changing itโ€™s base type.
- You can add sugar, cream, and more to coffee, but itโ€™s still coffee โ˜•


3. Facade - Encapsulate several complex actions behind a single simple interface.
- Computers are a simple way for humans to interact with complex hardware components (RAM, disk, networks, etc) ๐Ÿ›œ




---



๐Ÿš€ Implement each pattern yourself in Leetcode style practice problems:  https://neetcode.io/practice 

 #designpatterns   #objectorientedprogramming   #coding 

5 months ago (edited) โ€ข NeetCode

I coded "Leetcode for design patterns" on  https://neetcode.io/  for my recently launched Design Patterns course! ๐Ÿš€

Everyone hates on leetcode, but I always liked that problems were "self-contained". It's easy to jump in and finish a problem without a lot of context. โœ…

That's why I made leetcode-style problems to implement OOP design patterns. IMO it makes it easy to consistently solve a problem or two a day. And of course, consistent practice is the only way improve! โฐ


Check it out and lmk what you think! Really excited about this cause I don't think i've seen it anywhere else!
๐Ÿš€  https://neetcode.io/problems/adapter 

5 months ago โ€ข NeetCode

Wholesome friday post from the NeetCode discord server!


Also, launching the OOP Design Patterns course this weekend! It includes "Leetcode for design patterns" - e.g. implement each design pattern as a LC style problem.

๐Ÿš€  https://neetcode.io/ 

6 months ago (edited) โ€ข NeetCode

I grew up near Seattle so I wanted to go to the University of Washington for college (it's the 5th ranked CS school in the US).

But I had a bad GPA in high school and unfortunately got rejected ๐Ÿ˜ญ

Somehow I got invited to speak with the UW SWE career club, and got to meet some really talented students! LETS GOOOO

Thanks for having me UW! ๐Ÿค“

and for letting me wear my wazzu hat :)


---


๐Ÿš€  https://neetcode.io/ 

7 months ago โ€ข NeetCode

โœ… 24 hour stream leetcode stream



and i'm still alive 

8 months ago (edited) โ€ข NeetCode

When you grind so much leetcode that you build your own...  launching in a few days ๐Ÿš€๐Ÿš€๐Ÿš€




 https://neetcode.io/