- InstaByte
- Posts
- DeepSeek disrupts AI market
DeepSeek disrupts AI market
ALSO: REST vs gRPC

Welcome back!
Many people end up in an infinite loop when implementing Binary Search. This week, we are going to revise Binary Search.
Today we will cover:
Binary Search
REST vs gRPC
Read time: under 4 minutes
CODING CHALLENGE
Binary Search
Given an array of integers nums
which is sorted in ascending order, and an integer target
, write a function to search target
in nums
. If target
exists, then return its index. Otherwise, return -1
.
You must write an algorithm with O(log n)
runtime complexity.
Example 1:
Input: nums = [-1,0,3,5,9,12], target = 9
Output: 4
Explanation: 9 exists in nums and its index is 4
Example 2:
Input: nums = [-1,0,3,5,9,12], target = 2
Output: -1
Explanation: 2 does not exist in nums so return -1
Solve the problem here before reading the solution.
PRESENTED BY WRITER
Writer RAG tool: build production-ready RAG apps in minutes
Writer RAG Tool: build production-ready RAG apps in minutes with simple API calls.
Knowledge Graph integration for intelligent data retrieval and AI-powered interactions.
Streamlined full-stack platform eliminates complex setups for scalable, accurate AI workflows.
SOLUTION
Since the array is sorted, we can use binary search to find the target element efficiently. Binary search works by repeatedly dividing the search space in half.
We maintain two pointers, left
and right
, initially pointing to the start and end of the array. We find the middle element and compare it with the target. If the middle element is the target, we return its index. If the target is smaller, we search in the left half. If the target is larger, we search in the right half.
The time complexity of binary search is O(log n)
as we divide the search space in half in each iteration.

SYSTEM DESIGN
REST vs gRPC

Source: Postman
When building modern applications, choosing the right way for services to communicate is crucial. REST has been the go-to choice for years, but gRPC is gaining popularity. Let's see how they compare and when to use each one.
REST (Representational State Transfer) uses HTTP methods like GET, POST, PUT, and DELETE to interact with resources. It typically transfers data in JSON format, which is human-readable and easy to debug. Most developers are familiar with REST because it's been around for a long time and is well-documented.
gRPC, developed by Google, takes a different approach. It uses Protocol Buffers (protobuf) instead of JSON to serialize data. Protobuf is a binary format, which means it's not human-readable. Protobuf is more efficient to transmit and process.
One of gRPC's biggest advantages is performance. The binary format makes it significantly faster than REST, especially when dealing with large amounts of data or frequent communications. gRPC also provides strong typing through its protocol buffer definitions, which helps catch errors early in development.
But gRPC also has some drawbacks. It requires more setup than REST and has a steeper learning curve. Debugging can be harder since the data isn't human-readable. Browser support is also limited, making REST a better choice for browser-based applications.
Here's a comparison of REST vs gRPC:
Feature | REST | gRPC |
---|---|---|
Data Format | JSON (text) | Protocol Buffers (binary) |
Performance | Good | Better |
Use Cases | Web APIs, Web apps | Internal service communication |
Debugging | Easy | Harder |
Learning Curve | Low | Higher |
FEATURED COURSES
5 Courses of the Week
✅ Google Prompting Essentials: Learn practical AI prompting skills in 10 hours - from basic email writing to complex data analysis. Get certified in effective AI tool usage.
✅ Generative AI Prompt Engineering Basics: Master prompt engineering techniques for ChatGPT and other AI tools. Includes hands-on labs with IBM watsonx and practical applications.
✅ Machine Learning A-Z: Comprehensive ML course covering Python & R implementation, from basic predictions to advanced topics like reinforcement learning and NLP.
✅ Docker & Kubernetes Guide: Complete guide to containerization - from Docker basics to complex Kubernetes deployments. Covers installation, networking, and practical implementation.
✅ DevOps Beginners to Advanced: 10-step journey from Linux basics to advanced DevOps, covering AWS, Jenkins, Docker, Kubernetes, and Terraform with hands-on projects.
HIRE AN AI AGENT
Hire Ava, the AI SDR & Get Meetings on Autopilot
Ava automates your entire outbound demand generation process, including:
Intent-Driven Lead Discovery
High Quality Emails with Waterfall Personalization
Follow-Up Management
Free up your sales team to focus on high-value interactions and closing deals, while Ava handles the time-consuming tasks.
NEWS
This Week in the Tech World

DeepSeek sparks tech sell-off: Chinese AI startup DeepSeek's $6M model outperforms OpenAI, triggering massive tech sell-off. Nvidia lost $600B in market value, marking the largest one-day loss in U.S. history.
OpenAI unveils Operator: OpenAI launched Operator, an AI agent that can autonomously browse websites, shop online, and book reservations. The tool will be available to ChatGPT Pro subscribers for $200/month, with plans for wider release.
Trump plans new tariffs: Trump's proposed tariffs could raise tech prices significantly - laptops by 45%, gaming consoles by 40%, and smartphones by 26%. The administration is expected to reveal specific details soon.
Meta's $60B AI investment: Zuckerberg announces $60-65B investment in AI infrastructure for 2025, including a massive data center. Meta aims to have 1.3M GPUs by year-end and plans for its AI assistant to serve 1B+ users.
Perplexity AI revises TikTok bid: Perplexity AI updates merger proposal for TikTok US, offering the U.S. government up to 50% stake post-IPO. The deal would create "NewCo," combining Perplexity with TikTok's U.S. operations.
DeepSeek disrupts AI market: Chinese AI startup DeepSeek temporarily limits new user registrations after cyberattack. The company's R1 model recently overtook ChatGPT as most-downloaded free app on Apple's App Store, triggering tech stock sell-off.
Meta monetizes Threads: Meta begins testing ads on Threads with select companies in U.S. and Japan. The Twitter rival now has 300M monthly users, with 75% following businesses. Meta aims to make ads "as interesting as organic content.“
WHAT'S NEW IN AI?
Learn how to make AI work for you
AI won’t take your job, but a person using AI might. That’s why 1,000,000+ professionals read The Rundown AI – the free newsletter that keeps you updated on the latest AI news and teaches you how to use it in just 5 minutes a day.
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,