Back to Browse

Golang - Stacks and Queues (Data Structures 101)

468 views
Dec 7, 2023
9:37

Hi Gophers! In this video we implement stack and queues in Golang using slices. Take a look at slice internals and popular stack and queue applications like Backtracking, DFS and BFS algorithms. 0:00 Introduction 0:27 Stacks Overview 0:43 Golang Slices Review 1:08 Implement Stacks 1:36 Stack push() operation details 3:02 Stack pop() operation details 4:07 Stack Applications 4:46 Backtracking and DFS 5:47 Queues Overview 6:24 Differences between Stacks and Queues 6:40 Implement Queues 7:08 Queue enqueue() operation details 8:01 Queue dequeue() operation details 8:43 Queue Applications and BFS Explore my other videos here: 1. DFS and BFS leetcode with Stacks and Queues: https://youtu.be/NF6_VDqiDN0 2. Top 150 leetcode questions and answers in Golang: https://www.youtube.com/playlist?list=PL-zQGDJG8D5R0Ng6WGaN-U9FORpE9EdGq 3. Medium leetcode questions and answers in Golang: https://www.youtube.com/playlist?list=PL-zQGDJG8D5SWeT8wOx12Lr_JV96bMHTn Reference articles: https://go.dev/blog/slices-intro https://www.andrew.cmu.edu/course/15-121/lectures/Stacks and Queues/Stacks and Queues.html https://www.codesdope.com/course/algorithms-dfs/ https://www.codesdope.com/course/algorithms-bfs/ #stacks #queues #datastructures #golang #golangtutorial #golanginterview

Download

0 formats

No download links available.

Golang - Stacks and Queues (Data Structures 101) | NatokHD