VERIFYING AN ALIEN DICTIONARY | LEETCODE 953 | PYTHON SOLUTION

  Рет қаралды 975

Cracking FAANG

Cracking FAANG

Күн бұрын

Channel Discord Community: / discord
Problem Link: leetcode.com/problems/verifyi...
Today we are solving a cool easy level question that actually used to be Meta's top interview question before the hiring freezes: Verifying an Alien Dictionary. It's quite a fun problem and pretty easy to solve though there are some minor gotchas we need to watch out for.
TIMESTAMPS
00:00 Intro
00:08 Question Prompt
00:54 Basic Examples
02:56 Solution Intuition
04:58 Coding
10:47 Time/Space Complexity
12:45 Outro

Пікірлер: 4
@user-ff2ep5kk5i
@user-ff2ep5kk5i 5 ай бұрын
Congrats on 10k!!
@Liteship
@Liteship 2 ай бұрын
can you please do leetcode 529: minesweeper?
@louie0187
@louie0187 5 ай бұрын
10k!! Congrats, but should be more. if one video helps you in your interview prep, you should be subscribing.
@theFifthMountain123
@theFifthMountain123 3 ай бұрын
Slightly modified your solution: def isAlienSorted(self, words: List[str], order: str) -> bool: order = { val: index for index,val in enumerate(order)} def lexico(word1, word2): for i in range(min(len(word1), len(word2))): if word1[i] != word2[i]: return order[word1[i]] < order[word2[i]] return len(word1)
LARGEST PALINDROMIC NUMBER | LEETCODE 2384 | PYTHON SOLUTION
14:56
Cracking FAANG
Рет қаралды 1,6 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 265 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 16 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 111 МЛН
Verifying an Alien Dictionary
14:25
Kevin Naughton Jr.
Рет қаралды 80 М.
BEST MEETING POINT | LEETCODE 296 | PYTHON OPTIMAL SOLUTION
18:06
Cracking FAANG
Рет қаралды 1,7 М.
Verifying an Alien Dictionary - Leetcode 953 - Python
9:10
NeetCode
Рет қаралды 26 М.
ALIEN DICTIONARY | LEETCODE 269 | PYTHON TOPOLOGICAL SORT DFS SOLUTION
23:41
ACCOUNTS MERGE | LEETCODE # 721 | PYTHON SOLUTION
23:04
Cracking FAANG
Рет қаралды 10 М.
WORD BREAK | PYTHON | LEETCODE # 139
18:04
Cracking FAANG
Рет қаралды 3,3 М.
SLIDING WINDOW MEDIAN| LEETCODE 480 | PYTHON TWO-HEAP SOLUTION
30:07
Cracking FAANG
Рет қаралды 4,1 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 91 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 18 МЛН
КРАХ WINDOWS 19 ИЮЛЯ 2024 | ОБЪЯСНЯЕМ
10:04
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 1,7 МЛН
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 14 МЛН
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 1,1 МЛН
Yanlışlıkla Telefonumu Parçaladım!😱
0:18
Safak Novruz
Рет қаралды 1,4 МЛН