Phải chăng bạn đang muốn tìm kiếm bài viết nói về stack c++ có phải không? Phải chăng bạn đang muốn tìm chủ đề Introduction to Stacks and Queues (Data Structures & Algorithms #12) phải không? Nếu đúng như vậy thì mời bạn xem nó ngay tại đây.
NỘI DUNG BÀI VIẾT
Introduction to Stacks and Queues (Data Structures & Algorithms #12) | Xem thông tin về laptop tại đây.
[button color=”primary” size=”medium” link=”#” icon=”” target=”false” nofollow=”false”]XEM VIDEO BÊN DƯỚI[/button]
Ngoài xem những thông tin về laptop mới cập nhật này bạn có thể xem thêm nhiều thông tin có ích khác do soyncanvas.vn cung cấp tại đây nha.
Chia sẻ liên quan đến chuyên mục stack c++.
Đây là phần giới thiệu của tôi về ngăn xếp, hàng đợi và deques (hàng đợi kết thúc kép)! Bạn có thể kiểm tra vấn đề tôi đã đề cập ở cuối video tại đây: …
Hình ảnh liên quan đếnđề tài Introduction to Stacks and Queues (Data Structures & Algorithms #12).
>> Ngoài xem bài viết này bạn có thể truy cập thêm nhiều Thông tin hay khác tại đây: Xem thêm thông tin hữu ích tại đây.
Tag có liên quan đến nội dung stack c++.
#Introduction #Stacks #Queues #Data #Structures #amp #Algorithms.
[vid_tags].Introduction to Stacks and Queues (Data Structures & Algorithms #12).
stack c++.
Mong rằng những Thông tin về chủ đề stack c++ này sẽ có ích cho bạn. Rất cảm ơn bạn đã theo dõi.
Can i combine queue and linkedlist? like making an algorithm that uses both algorithms' features? is it doable? or these two cannot be combined techicaly?..
I saw the problem at the end of the video on LeetCode and I solved it
Amazing man 🥰😍🤩
"This is how pancakes in the real world work"
Legendary!
Thank you so much, these vedios are very helpful 🌸🌸🌸
what is 0(1)?
fantastic
Imagine if your professor teaches like this and add up those simple analogies so their students will have an easier approach to grasp the lesson at hand….. anyways, thank you so much for your precious videos!
Phew….I finally understood the gibberish my class was teaching
What app/ program did you use in creating this video?
This video is really helpful for me Thank you.
solution in python
class Stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def peek(self):
return self.items[len(self.items)-1]
def size(self):
return len(self.items)
def parChecker(symbolString):
s = Stack()
balanced = True
index = 0
while index < len(symbolString) and balanced:
symbol = symbolString[index]
if symbol in "([{":
s.push(symbol)
else:
if s.isEmpty():
balanced = False
else:
top = s.pop()
if not matches(top,symbol):
balanced = False
index = index + 1
if balanced and s.isEmpty():
return True
else:
return False
def matches(open,close):
opens = "([{"
closers = ")]}"
return opens.index(open) == closers.index(close)
print(parChecker('{({([][])}())}'))
print(parChecker('[{()]'))
I am CS student, and I have been following your channel for almost 2 years. It's a great explanation, but it would be more useful and more interesting if you could also show your explanation in code! Anyways thank you for your efforts!
its good but there is too many ads
this video make me really want some pancakes 🙁
ok. now why do i need this? like why. what is this useful for
Amazing, I just subscribed!
I love deque ( ͡° ͜ʖ ͡°)
You are the life saver! Hontouni arigatou gozaimasu!
If I have a queue, and it's a tasks queue, once that one task is completed I should remove the element from the queue, or just move the pointers?
And if I should just move the pointers, once that the pointers are on its limits, I would have to create another bigger queue to do what I want, right? This approach wouldn't use a lot of memory?
Once I made this remark, am I right if I define a queue as something that should be just a collection of things that will be freed of the memory soon, once it's completed?
Edit1: I was searching about, and one good response that I found was to use linked-lists, what I think is a great approach, once that it is first-in first-out, so you wouldn't have the problem of needing to change something or access something in the middle of the list, at least I think so.
Edit2: @t
Here's the code I've developed so far, trying to solve this issue.
13:26 & I lost my train of thoughts
感谢你的分享,让我学习了很多知识,谢谢。
Small Tip: Maybe explain what stacks and queues are useful for before explaining how they work. In that order I want to know how they work and why they are important.
Thank you. This channel really helps me with my data structures homework and such!
Wouldn't it be better to use a linked list to implement a stack?
16 minute free video explains it better than a 4000 per year degree…
I liked the video just after playing it… and when I was done I wished I could like it again… thanks for the great content you never disappoint
A solution for the problem at the end using Python3:
def is_balanced(chars: str):
abc = {'(': ')', '[': ']', '{': '}', '<': '>'}
list_chars = list(chars)
if chars == '':
return None
if len(list_chars) % 2 != 0:
return False # it is what it is
else:
i = 0
while len(list_chars) != 0:
if list_chars[i] in abc.keys():
if abc[list_chars[i]] == list_chars[i + 1]:
list_chars.pop(i + 1)
list_chars.pop(i)
if len(list_chars) == 0:
return True
if i > 0:
i -= 1
else:
i += 1
else:
return False
else:
return False
inp = '([]){{<><>}<[]>}()()'
print(is_balanced(inp)) # prints True
function bracket(input){
var inArr = […input]
var stack = [];
var mappingBracket = new Map([
[…"}{"],
[…")("],
[…"]["],
[…"><"],
])
var missMactchFound = false;
var hasIssues = 0;
for (var i of inArr){
// console.log("processing i="+i)
if(isStartChar(i)) {
stack.push(i);
}
else if(isEndChar(i)) {
var lastChar = stack.pop(i);
// console.log("lastChar = " + lastChar + " | i=" + i)
if((lastChar)!==mappingBracket.get(i)) {
console.log(`Expecting in stack '${mappingBracket.get(i)}' found '${(lastChar)}'`);
// console.log("lastChar = " + lastChar + "mappingBracket.get(lastChar) = "+ mappingBracket.get(lastChar)+ " | i=" + i)
missMactchFound = true;
break;
}
} else {
console.log("invalid char = " + i)
}
}
if(missMactchFound){
hasIssues = 1;
}
if(stack.length>0){
hasIssues = 2;
}
return hasIssues;
}
function isStartChar(c){
return (['(','[','{','<'].indexOf(c)>=0)
}
function isEndChar(c){
return ([')',']','}','>'].indexOf(c)>=0)
}
function test(test){
console.log("test : "+ test , bracket(test));
}
test("()")
test("{[]()}")
test("{()}")
test("{(())}")
test("{}")
test("(")
test(")")
test("{(()}")
test("{())}")
test("{[(])}")
wow this helped me understand stack and queues easily Thank you really….. but i was curious how was he presenting like this?? i mean what tools are you using?
I really struggle on my studies on Computer Science, and I still want it to become successful in this path. Please help me sensei.
I just had a quiz on this subject and our topic was stack. This video was really helpful. Hopefully, you'll make a series about C or C++
Can U use iphone while working in Google company ???
wtf!
How come I wasn't notified by YouTube when you posted this video?!?
Really? 60 seconds into the video and YouTube goes into a commercial break? Come on!
finally found a good programming teacher..
@CS Dojo
Thankyou Sir for guiding us!
Awesome explanation ❤
Bro why don't you make a series of java I want to learn it so much but I didn't get many results plzzzzzzzzz make a series on JAVA
But kivy tutorial plzz
I'm 13 years old right now,I'll say good work making these videos but I don't think leaving the job at Google was worth it
Hi please bro tell me the best laptop for programing and not expensive
Can u please upload videos on regular basis……The way u guide through is really amazing…a sincere request …🙏
Please give me some tips for maintenance of my health as I can see you the same since 3 years…😋
which one for web developer
2020 HP Envy x360 2in1 15.6" FHD Touch-Screen Newest Flagship Laptop, AMD Ryzen 7 4700U 8-core(Beat i9-8950HK, up to 4.1GHz), 16GB Memory, 1TB PCIe SSD, Fast Charge, Backlit-KB
or
HP Envy x360 2-in-1 15.6" FHD Touchscreen Laptop Computer, Intel Core i7-10510U, 32GB RAM, 1TB PCIe SSD, Intel UHD Graphics, B&O Audio, HD Webcam, USB-C, Win 10, Silve
or
Dell – Inspiron 14 7000 2-in-1 – 14" Touch-Screen Laptop – AMD Ryzen 7 – 16GB Memory – 512GB SSD – Sandstorm
thaks for your respond