Most teachers introduce solutions as fully-formed recipes. But in doing so, they totally miss how solutions are DISCOVERED. In painstaking detail, I go through this crucial missing piece and demonstrate how to methodically attack problems from every possible angle.
My teaching: https://watchandcode.com
Problem: https://leetcode.com/problems/valid-a...
0:00 Problem statement
0:33 Initial thought process
3:31 Two-map implementation
4:52 Examining the length check
6:14 Two-map performance
7:36 One-map approach
9:06 One-map performance
9:55 Sorting approach
13:14 Reflections
Смотрите видео Valid Anagram - LeetCode 242 - Python онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Gordon Zhu 12 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 515 раз и оно понравилось 27 людям.