Тёмный

Leetcode - Basic Calculator (Python) 

Timothy H Chang
Подписаться 14 тыс.
Просмотров 13 тыс.
50% 1

September 2021 Leetcode Challenge
Leetcode - Basic Calculator #224
Difficulty: Hard

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@yang5843
@yang5843 2 года назад
How does every other youtuber spend 20 minutes badly explaining their process yet this guy elegantly explains the problem in 7 minutes ?
@thetiltfactory1760
@thetiltfactory1760 2 года назад
I was asked this problem in a FAANG company in November and wish should've come across your channel earlier
@chrisrectenwald7307
@chrisrectenwald7307 2 года назад
Is this your first time seeing the problem?
@gomzomz
@gomzomz 2 года назад
there's no chance
@SeattlePiPiPi
@SeattlePiPiPi 2 года назад
I was wondering why cur * 10?
@sardines4dinner
@sardines4dinner 2 года назад
e.g. for 123, the code would see 1 first, then when it sees 2, it would do 1X10 + 2 = 12, and then when it sees 3 it would do 12*10 +3 = 123. It just moves the first number by a tenth place each time. of course if an operator or bracket appears, it resets.
@hugurs2396
@hugurs2396 9 месяцев назад
@@sardines4dinnerthank u brub 🙏
@thechinweibegbu
@thechinweibegbu 3 месяца назад
After trying to solve this at timestamp 48:12:91, only having passed 8 test cases out of 46, seeing this straightforward approach and really intuitive code is discouraging me, I cannot lie. I have to keep going, I know, but sometimes I wonder if I am simply incapable of solving some questions. I would like to think that is not the case.
@janmichaelaustria620
@janmichaelaustria620 3 года назад
The recursive solutions in the discussion are so hard to understand -___-
@anjaliyadav9360
@anjaliyadav9360 Год назад
Well explained!
@ravulaakhilsurya8569
@ravulaakhilsurya8569 3 года назад
You are hero ☺️
@sardines4dinner
@sardines4dinner 2 года назад
shouldn't we do cur = 0 in the c="(" loop, to calculate what's in the brackets? I tried that and it still works...
@akmaurya07
@akmaurya07 2 года назад
do not trust me rofl!
@derrickxu7784
@derrickxu7784 2 года назад
great explanation !!!
@chaengsaltz829
@chaengsaltz829 2 года назад
Master!
@winekills
@winekills 8 месяцев назад
i think you just saved me
Далее
BASIC CALCULATOR II | LEETCODE 227 | PYTHON SOLUTION
15:40
ТАРАКАН
00:38
Просмотров 1,2 млн
Трудности СГОРЕВШЕЙ BMW M4!
49:41
Просмотров 1,7 млн
Teeth gadget every dentist should have 😬
00:20
Просмотров 880 тыс.
Intro to Competitive Programming
11:41
Просмотров 777 тыс.
H Index - Leetcode 274 - Arrays & Strings (Python)
9:50
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Simplify Path - Stack - Leetcode 71 - Python
12:47
Просмотров 58 тыс.
Python Lambda Functions??
4:30
Просмотров 185 тыс.
ТАРАКАН
00:38
Просмотров 1,2 млн