• InstaByte
  • Posts
  • Meta signs multi-billion Nvidia deal

Meta signs multi-billion Nvidia deal

ALSO: Circuit Breaker pattern

In partnership with

Welcome back!

Today’s problem is every man’s dream. Let’s see if you get it or not.

Today we will cover:

  • 3Sum

  • Circuit Breaker Pattern

Read time: under 4 minutes

CODING CHALLENGE

3Sum

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.

Notice that the solution set must not contain duplicate triplets.

Example 1:

Input: nums = [-1,0,1,2,-1,-4]
Output: [[-1,-1,2],[-1,0,1]]
Explanation: 
nums[0] + nums[1] + nums[2] = (-1) + 0 + 1 = 0.

nums[1] + nums[2] + nums[4] = 0 + 1 + (-1) = 0.

nums[0] + nums[3] + nums[4] = (-1) + 2 + (-1) = 0.

The distinct triplets are [-1,0,1] and [-1,-1,2].

Example 2:

Input: nums = [0,1,1]
Output: []
Explanation: The only possible triplet does not sum up to 0.

Solve the problem here before reading the solution.

PRESENTED BY THE DEEP VIEW

Become An AI Expert In Just 5 Minutes

If you’re a decision maker at your company, you need to be on the bleeding edge of, well, everything. But before you go signing up for seminars, conferences, lunch ‘n learns, and all that jazz, just know there’s a far better (and simpler) way: Subscribing to The Deep View.

This daily newsletter condenses everything you need to know about the latest and greatest AI developments into a 5-minute read. Squeeze it into your morning coffee break and before you know it, you’ll be an expert too.

Subscribe right here. It’s totally free, wildly informative, and trusted by 600,000+ readers at Google, Meta, Microsoft, and beyond.

SOLUTION

To solve this problem, we will sort the array first. This will help us avoid duplicates. It would also enable us to use the two pointer approach. Let’s explain this in more detail.

The idea is to iterate the array and then find two other elements that sum up to -nums[i]. This would mean that nums[i] plus these two numbers would be 0. This will give us a valid triplet for the answer.

We will use the ‘twoSum’ function to find these two numbers. We would only look for the numbers to the right of the nums[i] to avoid duplicates. Since the array is sorted, we can use two pointers to find the numbers efficiently.

Sorting has a time complexity of O(n log n). Nested for loops have a time complexity of O(n^2). Since O(n^2) is bigger than O(n log n), overall time complexity is O(n^2).

TRY MORNING BREW 

Smarter news. Fewer yawns

Business news takes itself way too seriously.

Morning Brew doesn’t.

Morning Brew delivers a smart, skimmable email newsletter on the day’s must-know business news — plus games that make sticking around a little more fun. Think crosswords, quizzes, and quick breaks that turn staying informed into something you actually look forward to.

Join over 4 million professionals reading Morning Brew for free. And walk away knowing more than you did five minutes ago.

SYSTEM DESIGN

Circuit Breaker Pattern

When your application calls external services, a lot can go wrong. Services can be slow, unresponsive, or completely down. Without proper handling, these failures can cascade through your system, making everything slow or unusable. The Circuit Breaker pattern prevents this by detecting failures and avoiding unnecessary calls to failing services.

Let’s say you’re calling an external service that's experiencing issues. Each call might take 30 seconds to timeout, and your application makes hundreds of such calls. Your users would face long delays, and your system's resources would be tied up waiting for responses that will never come.

The Circuit Breaker works like an electrical circuit breaker. It monitors for failures. When failures reach a threshold, the circuit "trips" and prevents further calls to the failing service. Instead, it fails fast by returning an error immediately. After a set time, it allows a few test calls to check if the service has recovered.

The Circuit Breaker has three states:

1. Closed: Normal operation, calls pass through

2. Open: Calls fail fast without attempting to execute

3. Half-Open: Allows a limited number of test calls to check recovery

Implementation is straightforward. You track the number of recent failures. When failures exceed a threshold (say 5 failures in 10 seconds), you open the circuit. After a timeout period (maybe 1 minute), you switch to half-open and allow test calls. If these succeed, close the circuit; if they fail, reopen it.

Here's how you might use a Circuit Breaker:

// 5 failures, 1 minute timeout
CircuitBreaker breaker = new CircuitBreaker(5, 60000); 

try {
    breaker.execute(() -> externalService.call());
} catch (CircuitBreakerOpenException e) {
    // Handle failure fast scenario
}

The Circuit Breaker pattern pairs well with fallbacks. When the circuit is open, you can return cached data, default values, or use alternative services instead of failing completely.

FEATURED COURSES

5 Certificates of the Week

 Google Cybersecurity Professional Certificate: Prepare for a high-growth cybersecurity career with expert-designed training from Google. Learn critical skills like Python, Linux, and security tools, with 170 hours of instruction that simulate real-world cybersecurity scenarios and prepare you for entry-level analyst roles.

 Amazon Junior Software Developer Certificate: Dive into real-world software development through a comprehensive 7-course series. You'll create desktop applications with integrated data handling and GUI features, building a substantial portfolio that demonstrates your technical skills to potential employers.

 Meta Front-End Developer Professional Certificate: Master web development skills by learning HTML5, CSS, JavaScript, and industry-standard design tools like Bootstrap and React. You'll complete multiple projects and a final capstone project, creating a front-end web application that showcases your new coding and design capabilities.

 IBM iOS and Android Mobile App Developer Certificate: Learn to develop cross-platform mobile apps for Android and iOS using multiple programming languages and development tools. This comprehensive program provides hands-on experience designing, building, and maintaining user-friendly mobile apps with no prior programming experience required.

 Epic Games Game Design Professional Certificate: Get an in-depth introduction to game design using Unreal Engine, covering everything from level design to blueprint scripting. You'll complete multiple hands-on projects culminating in creating your own personalized game prototype, gaining practical skills from industry professionals.

NEWS

This Week in the Tech World

Meta Signs Multi-Billion Nvidia Chip Deal: Meta will deploy millions of Nvidia GPUs and standalone Grace CPUs across its data centers. This is the first large-scale Grace CPU-only deployment.

Anthropic Launches Claude Sonnet 4.6: Anthropic released Sonnet 4.6 with a 1M token context window and improved coding and computer use. It's now the default model for Free and Pro users.

Anthropic Raises $30B at $380B Valuation: Anthropic closed a $30B Series G round, more than doubling its valuation since September. Revenue run-rate is now $14B, growing 10x annually.

OpenAI Drops GPT-5.3-Codex-Spark: OpenAI released a lightweight Codex model running on Cerebras hardware, streaming over 1,000 tokens per second. It's designed for real-time coding.

Google Launches Gemini 3 Deep Think: Google released its advanced reasoning model, Gemini 3 Deep Think, stepping up competition in the AI reasoning space against OpenAI and Anthropic.

Chrome Zero-Day Actively Exploited: Google patched CVE-2026-2441, a use-after-free bug in Chrome's CSS component being exploited in the wild. This is the first Chrome zero-day of 2026.

GitHub Ships Agentic Workflows: GitHub launched Agentic Workflows, letting developers describe outcomes in Markdown and run them as coding agents via GitHub Actions with built-in guardrails.

BeyondTrust RCE Flaw Under Attack: Attackers are exploiting CVE-2026-1731, a critical pre-auth RCE in BeyondTrust Remote Support. About 8,500 on-prem instances remain potentially vulnerable.

Half of xAI's Founding Team Has Left: Six of xAI's 12 original co-founders have now departed, including two who exited this week. The departures come amid Grok issues and an impending IPO.

BONUS

Just for laughs 😏

HELP US

👋 Hi there! We are on a mission to provide as much value as possible for free. If you want this newsletter to remain free, please help us grow by referring your friends:

📌 Share your referral link on LinkedIn or directly with your friends.
📌 Check your referrals status here.

YOUR FEEDBACK

What did you think of this week's email?

Your feedback helps us create better emails for you!

Login or Subscribe to participate in polls.

Until next time, take care! 🚀

Cheers,