Faang Coding Question! | Generate Parentheses - Leetcode 22

preview_player
Показать описание
leetcode, coding interview question, data structures, data structures and algorithms, faang
Рекомендации по теме
Комментарии
Автор

Master Data Structures & Algorithms For FREE at AlgoMap.io!

GregHogg
Автор

the quickest and more elegant way to do this is to use "Catalan numbers". This is a typical example for these numbers and the final function is only 1 loop, so the efficient way is O(n)

Koxu
Автор

I wish you could tell the runtime of these questions

this.just.in.
Автор

Excellent short video content - easy to recap once in a while!

tubemkp
Автор

Is this really the solution with the least computations? The fastest to compute?

wepped
Автор

Sol array is not necessary you can do with a string variable

shreehari
Автор

Bro how do you learnt this kind of stuff.. i wanna also learn this..please brother reply 🙏🏻

brianoconner
Автор

yo what a coincidence. I was actually thinking about this problem but decided to relax and scroll youtube shorts a bit but came across this vid XD. Btw, I haven't watched your solution yet as i wanted to figure it out on my own. Could u please drop me a small hint on how to approach this problem? Thank you so much XD

tanhnguyen
Автор

this is a little tough for medium do u think?

tranminhquang