LeetCode 929 | Unique Email Addresses | Python Normalization + Set | AlgoYogi
Welcome to AlgoYogi! 🚀 Start Your Smart Coding Prep at 👉 https://algoyogi.io In this video, we solve **LeetCode 929: Unique Email Addresses** using Python with a clear normalization strategy: - Given a list of email strings, normalize each by applying these rules to the local part: 1. Remove all dots (.) 2. Ignore everything after a plus (+) - Recombine with the domain and count unique normalized emails using a set. Example: test.email+alex at leetcode.com test.e.mail+bob.cathy at leetcode.com testemail+david at lee.tcode.com Normalize to: testemail at leetcode.com (same as first two) testemail at lee.tcode.com (different) Result = 2 unique addresses. --- ### ⏱ Timestamps 0:00 Introduction 0:20 Problem Statement 0:40 Normalization Logic 5:00 Python Code Walkthrough 7:30 Time & Space Complexity --- ### Why Watch? - Learn how to properly normalize email addresses - Use Python’s string manipulation with split and iteration - Leverage sets for clean deduplication logic #LeetCode #UniqueEmailAddresses #Python #AlgoYogi #StringManipulation #Hashing
Download
0 formatsNo download links available.