ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Were you able to get all the ancestors?
I was a bit busy today, hometown visit.Did by recursion though
Nice explanation. Just beginning graphs and made that mistake [[] * n] yesterday LoL. Btw, sorted() already returns a list in the second last line.
there are a lot of things in python that returns an iterable - I don't have them memorized, so it's just easily to do this.
going bottom up (starting from no children) and using a queue gave me a tle.
leetcode daily
Were you able to get all the ancestors?
I was a bit busy today, hometown visit.
Did by recursion though
Nice explanation. Just beginning graphs and made that mistake [[] * n] yesterday LoL. Btw, sorted() already returns a list in the second last line.
there are a lot of things in python that returns an iterable - I don't have them memorized, so it's just easily to do this.
going bottom up (starting from no children) and using a queue gave me a tle.
leetcode daily