Leetcode 20. Valid Parentheses (but I am losing my mind)

  Рет қаралды 668

ComputerBread

ComputerBread

Күн бұрын

Пікірлер: 5
@ComputerBread
@ComputerBread 2 күн бұрын
Hello! Here's a new leetcode video! The end is a bit silly, but it was pretty fun to make! I hesitated between different options to explain the solution to this problem, I am not sure I picked the best one. What do you think? is it ok? Should I just explain the solution without trying to show the thought process?
@yarburart7242
@yarburart7242 2 күн бұрын
I heard from a random old guy that if you imagine JS runs directly on hardware, then in V8 the stack will be implemented in hardware like in CPU. Will this code be faster if we use the stack as in V8 but not as in function calls and is it possible?
@ComputerBread
@ComputerBread Күн бұрын
I am not really sure I understand what you mean. But in JavaScript you can't really access the underlying "features" of the V8 engine. But I think it should be possible to write an assembly program to directly manipulate the stack using the stack pointer. (I am probably going to try it & do another video!)
@tanker7757
@tanker7757 Күн бұрын
couldnt you count the open brackets and then count the total closed brackets then see if there even seems dumb to check they all close individualy
@romanvalevin
@romanvalevin Күн бұрын
Nuh, he did explain, that input like "([)]" should return false, that's the whole point of the problem
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 129 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 40 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 15 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 93 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 28 МЛН
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 613 М.
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
ARRAYLIST VS LINKEDLIST
21:20
Core Dumped
Рет қаралды 70 М.
30 Programming Truths I know at 30 that I Wish I Knew at 20
17:41
Is Computer Science still worth it?
20:08
NeetCodeIO
Рет қаралды 422 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 101 М.
How I animate 3Blue1Brown | A Manim demo with Ben Sparks
53:41
3Blue1Brown
Рет қаралды 829 М.
How Math Becomes Difficult
39:19
MAKiT
Рет қаралды 131 М.
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 185 М.
using numbers in your code is bad
14:33
Low Level
Рет қаралды 142 М.
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 40 МЛН