Leetcode 227. Basic Calculator II (3 solutions, Intro to grammars)

Hey guys, welcome back to another leetcode video. Today, we solve the medium leetcode problem 227. Basic Calculator II with 3 different solutions: using one stack using a few variables using a grammar! I've been spending some time learning about the theory of computation, grammars, CFG, parsers, compiler & interpreter design. And I thought I could start making videos about that using a few leetcode problems, so in the future, I will solve Basic Calculator, maybe do basic calculator III, and then will probably make an "advanced calculator" in C and/or Zig. I hope you will enjoy it! Leetcode playlist:    • Interview Question   JavaScript playlist:    • JavaScript   Sauce: Leetcode problem: https://leetcode.com/problems/basic-c... Code: https://github.com/ComputerBread/leet... To support me (if you feel like it): https://ko-fi.com/computerbread/ Cheatcheet/mindmap: https://ko-fi.com/s/34966c8fb1 Twitter:   / computerbread   Subscribe:    / @computerbread   Chapters: 00:00 Introduction 01:39 First Solution (stack) 05:18 Second Solution (variables) 09:24 Third Solution (grammar) 15:10 Conclusion (for the algorithm) Every software engineer, developer, programmer, computer science student looking for a high paying job, 6 figures, millionaire, should spend time to grind leetcode to ace technical interviews. If you want to be cracked, you need to crack leetcode! Stack, variable, grammar, parser, tree walker, recursive descent #javascript #leetcode #programming #grammar