@GregHogg

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

@Koxu1337

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)

@this.just.in.789

I wish you could tell the runtime of these questions

@shreehari2589

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

@wepped482

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

@brianoconner8405

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

@tranminhquang4541

this is a little tough for medium do u think?

@tanhnguyen2025

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

@danielazulay4936

At least give credit to @neetcode :)