Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

CK3366 
Created at  

  1,530   0   0  

A step-by-step breakdown of everyones first system design interview question, Design Bit.ly.

Evan, a former Meta Staff Engineer and current co-founder of Hello Interview, walks through the problem from the perspective of an interviewer.
 

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

 

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

<?php

class Base62 {
    private static $charset = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
    private static $base = 62;

    // Encode a decimal number to Base62
    public static function encode($num) {
        if ($num == 0) return self::$charset[0];

        $result = '';
        while ($num > 0) {
            $result = self::$charset[$num % self::$base] . $result;
            $num = intdiv($num, self::$base);
        }

        return $result;
    }

    // Decode a Base62 string to decimal
    public static function decode($str) {
        $length = strlen($str);
        $num = 0;

        for ($i = 0; $i < $length; $i++) {
            $pos = strpos(self::$charset, $str[$i]);
            $num = $num * self::$base + $pos;
        }

        return $num;
    }
}

// Example usage
$original = 123456789;
$encoded = Base62::encode($original);
$decoded = Base62::decode($encoded);

echo "Original: $original\n";
echo "Encoded : $encoded\n";
echo "Decoded : $decoded\n";

Beginner System Design Interview: Design Bitly w/ a Ex-Meta Staff Engineer

 

Candidate expected to use https://excalidraw.com/ 



Tags: Meta Interview System Design Interview Share on Facebook Share on X

◀ PREVIOUS
Engineering Job Level Comparison: Microsoft vs Meta vs Google vs Amazon

▶ NEXT
Meta Interview - Designing a Video Streaming Service

  Comments 0
SIMILAR POSTS

Meta Interview - Designing a Video Streaming Service

(updated at )


OTHER POSTS IN THE SAME CATEGORY

Pre-Departure Google Workspace Personal Data Cleanup

(created at )

Meta Interview - Designing a Video Streaming Service

(updated at )

Engineering Job Level Comparison: Microsoft vs Meta vs Google vs Amazon

(created at )

If your offer’s base salary and bonus are lower than what you’re currently earning

(created at )

Guide for Meta Recruiter Phone Screen Interview

(updated at )

Things what you need to think when you will be in the layoff meeting

(updated at )

Employer Requirements under California Labor Code Section 6401.9

(created at )

What is Sexual Harassment? It's Never Okay!

(updated at )

Nine roles for great leadership

(updated at )

12 Proven Strategies to Work Smarter, Not Harder

(updated at )

Evaluating Intangible Traits in Employee Performance Reviews

(updated at )

The Example Turning a Negative into a Positive - How to Make Criticism Count?

(updated at )

Navigating Employee Performance Evaluations with a Positive Approach

(updated at )

Evaluate and Encourage Full Participation and Success To Optimize The Performance Review Process

(updated at )

Link Performance Management With Rewards and Recognition To Optimize The Performance Review Process

(updated at )

The Review To Optimize The Performance Review Process

(updated at )

Adequately Prepare and Train Your Managers To Optimize The Performance Review Process

(created at )

UPDATES

The Harmful Effects of Squeezing Blemishes: Why You Should Avoid It

(updated at )

Finding Your Path to Clear Skin: The Best Way to Treat Acne

(updated at )

Choosing the Right Cosmetics and Cleansers for Acne-Prone Skin

(updated at )

Why Does Vietnamese Cable TV Have Almost No Ads? A Look at the Rules

(created at )

In 2026, Advertising Is Converging on the TV Screen - 5 Opportunities OTT Operators Should Be Watching

(updated at )

Musk's Masterclass: Prioritizing, Delegating & Verifying

(created at )

Life is Short: HubSpot Founder's Cliff-Edge Wisdom for Leaders

(updated at )

The Making of OpenAI: Birth, Battles, and Breakthroughs

(updated at )

Brazil's Digital & Demographic Deep Dive: Economy & Top Streaming Services

(updated at )

World Population Top 30 (2016-2025)

(created at )

SouthEast Asia Advertising Market - Comprehensive Analysis by Country, Company, Platform & Revenue

(created at )

Comprehensive Report on Portugal: Demographics, Digital Usage, and Top Streaming Companies

(updated at )

Mongolia Unpacked: Demographics, Digital Economy, and Leading Streaming Services

(updated at )

Italy: A Comprehensive Guide to Demographics, Digital Trends, and Its Top 10 Video Streaming Companies

(updated at )

Spain: Demographics, Digital Usage, Economic Insights & Top 10 Streaming Services

(updated at )

France's Digital Economy: Demographics, Trends, and Streaming Leaders

(updated at )

Germany's Digital Deep Dive: Demographics, Internet Usage, Market Trends, and Top 10 Video Streaming Powerhouses

(updated at )

United Kingdom: Demographics, Digital Life, and Streaming's Top 10 Players

(updated at )

Russia's Digital Blueprint: Economy, Demographics, and Streaming Landscape

(updated at )

Singapore's Top 10 Video Streaming Companies

(updated at )

Canada's Digital Pulse: Demographics, Connectivity & Top 10 Streaming Services Unveiled

(created at )

Korea's Streaming Story: Top 10 Platforms in a Digital Nation

(updated at )

Malaysia's Top 10 Video Streaming Companies 2026

(updated at )

Indonesia's Top 10 Video Streaming Companies

(updated at )

Japan's Top 10 Video Streaming Companies

(updated at )

United States's Top 10 Video Streaming Companies

(updated at )

The Evolving Role of Engineering Organizations in the AI Era

(created at )

exif_filename - a Powerful Command-Line Tool Designed for Automatically Renaming Image Files based on EXIF metadata

(updated at )

The Correlation between Income Level and Television Viewing Time

(updated at )

Problem-Solving Narratives in Startup Programs

(created at )

Vietnamese Top 10 Video Streaming Companies 2026

(updated at )

Thailand's Top 10 Video Streaming Companies 2026

(updated at )

Phillippine's Top 10 Video Streaming Companies 2026

(updated at )

Business Structure Comparison: Sole Proprietorship vs S-Corporation

(updated at )

Affordable Payroll Solutions for Family-Based Businesses in the US

(updated at )

Vietnam Television (aka VTV)

(updated at )

Pre-Departure Google Workspace Personal Data Cleanup

(created at )

Do we know what causes endometrial cancer?

(updated at )

What should you ask your physician about endometrial cancer?

(updated at )

How is cancer of the cervix treated?

(updated at )

Navigating Startup Funding Rounds: Expectations and Investment Sizes

(updated at )

What is hot water steam cleaning and aren't all steam cleaners the same?

(updated at )

To Pad or Not to Pad: The Lowdown on Carpet Padding

(updated at )

Decoding the Pelvic Exam: A Comprehensive Women's Health Assessment

(updated at )

How do they put people to sleep for an oral surgery?

(updated at )

Unveiling the Link: Helicobacter pylori Infection and the Risk of Stomach Cancer

(updated at )

Steve Jobs' Battle with Pancreatic Cancer and His Unconventional Dietary Choices

(updated at )

Surgery for Colorectal Cancer

(updated at )