• Hungry Minds
  • Posts
  • ๐Ÿ”๐Ÿง  Leetcode Patterns 101: How to Crush Dynamic Programming

๐Ÿ”๐Ÿง  Leetcode Patterns 101: How to Crush Dynamic Programming

PLUS: OpenAI's Challenge to Google Search ๐ŸŒ, Build and Deploy with Llama 3.1 ๐Ÿง‘โ€๐Ÿ’ป, Master Advanced Terminal Tricks ๐Ÿ”‘

In partnership with

Happy Monday! โ˜€๏ธ

Welcome to the 669 new hungry minds who have joined us since last Monday!
If you arenโ€™t subscribed yet, join smart, curious, and hungry folks by subscribing here.

๐Ÿ” THIS WEEKโ€™S MENU ๐Ÿฅ—

๐Ÿ“š Software Engineering Articles

๐Ÿ—ž๏ธ Tech and AI Trends

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Coding Tip

  • The Observer pattern enables flexible, modular code in JavaScript frameworks like React.

Reading time: 5 minutes

A few words from our sponsor this week:

FREE AI & ChatGPT Masterclass to automate 50% of your workflow

More than 300 Million people use AI across the globe, but just the top 1% know the right ones for the right use-cases.

Join this free masterclass on AI tools that will teach you the 25 most useful AI tools on the internet โ€“ that too for $0 (they have 100 free seats only!)

This masterclass will teach you how to:

  • Build business strategies & solve problems like a pro

  • Write content for emails, socials & more in minutes

  • Build AI assistants & custom bots in minutes

  • Research 10x faster, do more in less time & make your life easier

Youโ€™ll wish you knew about this FREE AI masterclass sooner ๐Ÿ˜‰

Food for Thought
A mindset, an example, and an action item to start the week
โ

โ€œYou Can Do Anything But Not Everythingโ€

Hannah Braime

Mindset: Prioritize and focus on what truly matters, instead of trying to do it all.

Example: Basecamp, a project management tool, emphasizes the importance of constraints and saying "no" to stay productive.

Action: Choose one important task and allocate dedicated time for it today, without distractions.

The Rabbit Hole
Deep dives, trends, and resources curated to stay ahead

๐Ÿ’พ SIDE DISHES ๐Ÿ’พ

ARTICLE (rusty terminal magic)
The BEST Fully Rust-based Terminal Setup

GITHUB REPO (memory muncher)
The memory layer for Personalized AI

ARTICLE (git it together)
How I Use Git Worktrees

ARTICLE (terminal wizardry)
Advanced Terminal Tips and Tricks

ARTICLE (canva the data-destroyer)
How Canva collects 25 billion events per day

ARTICLE (llama lift-off)
How to Build with LLama 3.1

The Weekly Digest
Software, AI, and startup news worth your time

Brief: OpenAI's new SearchGPT prototype is in limited testing, aiming to provide faster, more relevant answers and directly compete with Google's dominant search engine.

Brief: Meta releases Llama 3.1 405B, a model with 405 billion parameters that enhances upon prior versions, promising competitive performance and advanced context capabilities, while facing scrutiny over data sourcing and copyright issues.

Brief: Apple is developing a foldable iPhone named V68, expected to launch by 2026, while also working on a thinner version and exploring a MacBook-like foldable.

Brief: Tesla plans to initiate low production of its Optimus humanoid robots for internal use by 2025, reflecting a shift in strategy amid declining EV demand and ambitious goals for AI advancements.

Brief: Apple Maps expands with a web version offering directions, reviews, and business info, positioning itself against Google Maps while promising future feature updates.

Brief: OpenAI may incur losses of $5 billion this year and could potentially run out of cash within a year, raising concerns about its financial sustainability.

The Quick Byte
One coding tip because youโ€™re technical after all

This weekโ€™s coding challenge:

This weekโ€™s tip:

The Observer design pattern is invaluable in building flexible and reusable systems, particularly within JavaScript frameworks like React.

It enables the creation of a subscription-based system where one object (the subject) maintains a list of dependents (observers) and notifies them automatically of any state changes.

This pattern facilitates a clean separation of concerns and promotes a more modular architecture.

Wen?

  • Decoupled Component Communication: Ideal for scenarios where various components need to react to changes without tightly coupling them, fostering maintainability and scalability.

  • Dynamic Listener Management: Useful in applications requiring dynamic registration of listeners, such as Redux-like state management, ensuring that only active listeners receive updates.

  • Real-time Data Feeds: Effective for implementing features like chat systems or live notifications, where multiple parts of an application must respond to real-time data changes.

Why?

  • Separation of Concerns: Promotes a clear differentiation between the data management and rendering logic, making code easier to read and maintain.

  • Flexibility and Extensibility: New observers can be added or removed with minimal changes, allowing developers to evolve the system without impacting existing components.

  • Enhanced Testability: Makes testing easier, as you can test observers in isolation and ensure they respond appropriately to notifications, improving overall code quality.

Burp-A-Laugh
The most important meal of your day

Thatโ€™s it for today! โ˜€๏ธ

Enjoyed this issue? Send it to your friends here to sign up, or share it on Twitter!

If you want to submit a section to the newsletter or tell us what you think about todayโ€™s issue, reply to this email or DM me on Twitter! ๐Ÿฆ

Thanks for spending part of your Monday morning with Hungry Minds.
See you in a week โ€” Alex.

Icons by Icons8.

*I may earn a commission if you get a subscription through the links marked with โ€œaff.โ€ (at no extra cost to you).