- InstaByte
- Posts
- OpenAI fires back at Gemini
OpenAI fires back at Gemini
ALSO: How to design Youtube
Welcome back!
This week we’re gearing up to solve a timeless problem, asked by all FAANGs.
In today’s newsletter, we’ll cover:
Container with most water problem
How to design YouTube
Read time: under 4 minutes
CODING CHALLENGE
Container With Most Water
You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).
Find two lines that together with the x-axis form a container, such that the container contains the most water.
Return the maximum amount of water a container can store.
Notice that you may not slant the container.
Example:

Input: height = [1,8,6,2,5,4,8,3,7]
Output: 49
Explanation: The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 49.Solve the problem here before reading the solution.
PRESENTED BY NVIDIA
50% Off NVIDIA Certification—Ends Dec 31
This December, get 50% off all NVIDIA certification exams! Purchase by Dec 31 to lock in your discount—you’ll have 60 days to take your exam. Buy now and start 2026 ready to accelerate your AI, data science, and tech career.
SOLUTION
To solve this problem, we will use a two-pointer approach. Two pointers represent the current walls of the container. Initially, we put the first pointer at the beginning and the second pointer at the end of the array.
If you look closely, the shorter wall decides how much water a container can hold. To calculate the water that the current container can hold, we multiply the height of the shorter wall by the distance between the two walls.
Then, we move the pointer at the shorter wall inwards hoping to find a taller wall and increase water that can be stored.
We will update the maximum area as we do this. This process continues until the two walls come together.

HEARD OF THESYS?
Turn n8n workflows into intelligent AI apps
C1 by Thesys turns any n8n workflow into a smart, adaptive AI app - with interactive UIs instead of walls of text. From chatbots to AI agents for research, analytics or automation, no coding and no changes to your workflow logic.
SYSTEM DESIGN
How to design YouTube?

Source: Tenor
Let’s dive into the high-level design for a simplified Youtube system.
The key requirements include fast video uploads and smooth streaming. We also want the system to be highly available.
The system mainly consists of a content delivery network (CDN), transcoding servers, and databases for video and metadata storage.
Videos are uploaded in chunks and transcoded into multiple formats for different devices and bandwidths. Metadata like titles and descriptions are stored in a sharded and replicated database. CDNs deliver videos and cache the popular ones. Check out this article for more details.
FEATURED COURSES
5 Courses of the Week
✅ Building RAG Agents with LLMs: Design retrieval-augmented generation systems using large language models. Use LangChain, Gradio, and LangServe for pipeline design. Implement vector stores and embeddings for document retrieval. Create RAG agents that answer questions without fine-tuning.
✅ Evaluating RAG and Semantic Search Systems: Learn rigorous evaluation methods for enterprise RAG applications. Use frameworks like Ragas and LLM-as-a-Judge techniques. Generate synthetic test sets for realistic queries. Debug retrieval and generation stages independently. Handle temporal data and regulatory compliance requirements.
✅ Building Agentic AI Applications with LLMs: Develop sophisticated agents that execute complex tasks at scale. Use LangGraph for multi-agent orchestration. Create agents that conduct research and interface with external systems.
✅ Adding New Knowledge to LLMs: Customize and optimize large language models for enterprise applications. Use NVIDIA NeMo Curator for data curation and synthetic data generation. Optimize models with quantization, pruning, and knowledge distillation using TensorRT-LLM.
✅ Deploying RAG Pipelines for Production at Scale: Build scalable RAG applications using NVIDIA NIM microservices and Kubernetes. Deploy and manage services with the NIM Operator. Monitor performance with Prometheus and Grafana.
USE AI TO EARN EXTRA $$$
Turn AI Into Extra Income
You don’t need to be a coder to make AI work for you. Subscribe to Mindstream and get 200+ proven ideas showing how real people are using ChatGPT, Midjourney, and other tools to earn on the side.
From small wins to full-on ventures, this guide helps you turn AI skills into real results, without the overwhelm.
NEWS
This Week in the Tech World

Google vs OpenAI intensifies: Google launched its Gemini Deep Research agent on the same day OpenAI dropped GPT-5.2, escalating the AI race. Both companies claim benchmark superiority in this ongoing competition.
Nvidia Unveils Nemotron 3 Family: Nvidia has launched the Nemotron 3 family of open models, including Nano, Super, and Ultra sizes. This release provides developers with specialized libraries and datasets to build highly efficient AI agents.
Amazon eyes $10B OpenAI investment: Amazon is in talks to invest up to $10 billion in OpenAI, which could value the company over $500 billion and include use of Amazon's AI chips.
Databricks raises $4B at $134B valuation: Databricks raised over $4 billion at a $134 billion valuation. The data analytics company hit $4.8 billion revenue run rate, up 55% YoY.
Tesla ruled deceptive on Autopilot: California judge ruled Tesla's "Autopilot" and "Full Self-Driving" marketing deceptive. Tesla has 60 days to comply or face sales ban.
Waymo seeks $15B at $100B valuation: Alphabet's self-driving unit Waymo is in discussions to raise over $15 billion at a valuation approaching $100 billion.
OpenAI ends new hire vesting cliff: OpenAI eliminated the six-month vesting cliff for new employees in response to intense AI talent competition among major tech companies.
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! |
Until next time, take care! 🚀
Cheers,


