- 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 ๐
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
Explore how to maintain cache consistency effectively.
Master 20 dynamic programming patterns for efficient problem-solving.
Discover strategies to transition from Junior to Staff Engineer.
Learn how technology choice can impact your projects.
Understand the power of consistency in software engineering.
๐๏ธ Tech and AI Trends
OpenAI's new SearchGPT challenges Google closely.
Meta's launch of Llama 3.1 enhances competitive AI capabilities.
Anticipate Appleโs foldable iPhone arriving in 2026!
๐จ๐ปโ๐ป 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โ
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
ESSENTIAL (crash course on outages)
The Biggest-Ever Global Outage: Lessons For Software Engineers
ARTICLE (git it together)
How I Use Git Worktrees
GITHUB REPO (llama drama)
Distribute and run LLMs with a single file
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
GITHUB REPO (composio conqueror)
Composio equips agents with well-crafted tools empowering them to tackle complex tasks
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.
The Job Feast
A fresh cheese job board if youโre looking for a change
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).