Construct String from Binary Tree - Leetcode 606 - Python

  Рет қаралды 36,055

NeetCode

NeetCode

Күн бұрын

Пікірлер: 47
@NeetCode
@NeetCode 2 жыл бұрын
🚀 neetcode.io/ - 25% OFF LAUNCH SALE Just released the first batch of Advanced Algorithm lessons, along with some other updates. A lot more updates coming soon! 🙂
@tchsu1140
@tchsu1140 2 жыл бұрын
I love the videos you made .Thanks
@masternobody1896
@masternobody1896 2 жыл бұрын
lets goo more leetcode
@ayush51379
@ayush51379 2 жыл бұрын
Thanks for making such amazing and very helpful videos!!
@studyaccount794
@studyaccount794 2 жыл бұрын
Woah, you rich man lol. Congrats on the job offer🎉🎉
@minh1391993
@minh1391993 2 жыл бұрын
Wow, you work really hard lately. That's really a great contribution to the society. I started watching your solution last year when there were just a few videos in this channel. Now you really make it to a whole new level. Sadly, I just solved around 150 problems for a whole year.
@chaoluncai4300
@chaoluncai4300 2 жыл бұрын
with this pace you'll need 15 yrs to touch all curr existing problems on lc, not to mention new problems posting bi-weekly... isn't it sound scary :P make me think about life lol
@minh1391993
@minh1391993 2 жыл бұрын
@@chaoluncai4300 yea, that's too scary, not to mention that I am graduating in less than 6 months. hahaha. I seriously need somebody to shout at me everyday to speed up. Otherwise, my job seeking is gonna be a nightmare.
@oxyht
@oxyht 2 жыл бұрын
@@chaoluncai4300 150 questions is more than enough to get grasp of concepts of algo. Make sure you can do questions on your own.
@StevenTohme
@StevenTohme 2 жыл бұрын
i forgot how much i enjoy these videos.
@yajasmalhotra9011
@yajasmalhotra9011 2 жыл бұрын
I've got the Amazon New Grad final tomorrow and I was just about to get to this question from the Amazon tagged list. Neetcode coming in clutch again!
@kewtomrao
@kewtomrao 2 жыл бұрын
@Isaac Mattern Same here. not recieved the link. I applied for intern at dublin and havent heard back
@captainmcduckyYT
@captainmcduckyYT 2 жыл бұрын
How'd it go man?
@tu4012
@tu4012 6 ай бұрын
Bro!! did you get the amazon new grad job????
@yajasmalhotra9011
@yajasmalhotra9011 6 ай бұрын
@@tu4012 passed the interview but hiring freeze hit
@chrischika7026
@chrischika7026 5 ай бұрын
how did it go ?
@arjunverma750
@arjunverma750 2 жыл бұрын
Thanks!
@dewangpatil4990
@dewangpatil4990 2 жыл бұрын
Your videos are the most intutive ones.......... Surviving cp bcoz of you brother, If one day I get into Amazon, I will give u whatever u ask for ❤❤❤❤❤❤❤❤
@shinewbiez
@shinewbiez 2 жыл бұрын
Please don't stop uploading solutions! You are really awesome!
@coryjamesmoonfall1602
@coryjamesmoonfall1602 2 жыл бұрын
I have no idea what you just did, but thank you.
@jessanraj9086
@jessanraj9086 2 жыл бұрын
Feeling grateful to listen to your explanations neet
@TechOnScreen
@TechOnScreen 2 жыл бұрын
Please make similary solution daily for the Leetcode Daily Challenges.. Otherwise i have search all over the youtube for other days.. THanks.
@ankitsharma1072
@ankitsharma1072 2 жыл бұрын
I recently gave Amazon SWE intern interview, I was asked to find bottom -right view of a tree, at first it may appear hard, but it was just diagonal order traversal and getting last element from each diagonal.
@varunshrivastava2706
@varunshrivastava2706 2 жыл бұрын
I have a question, I have participated in a couple of Open Source Programs but couldn't do an Internship. So are my chances slim inorder to get my resume shortlisted as I have only mentioned those Open Source Programs contributions in my resume work experience section?
@ankitsharma1072
@ankitsharma1072 2 жыл бұрын
@@varunshrivastava2706 i have applied through on-campus placement cell. Resume shortlisting is namesake, infact I have no prior internship experience, i have just participated in many hackathons and I have projects.
@Dr-Doggo
@Dr-Doggo 2 жыл бұрын
@@varunshrivastava2706 open source will (just) will not work you WILL need to participate in some coding contests. I am having interviews in October, I recently graduated from a tier 3 college and believe me I tried everything in my college days but nothing will work if you don’t have data structure and algorithmic skills
@varunshrivastava2706
@varunshrivastava2706 2 жыл бұрын
@@Dr-Doggo Yup agree with you I am not completely relying over open source. I have been doing Open source + Dev + DSA for the past 1 year. The reason why I specifically mentioned open source was because I didn't have anything else to put in my work experience section. And some people suggested me to put my open source program experience in it.
@varunshrivastava2706
@varunshrivastava2706 2 жыл бұрын
@@ankitsharma1072 How many rounds of interview do you have to go through. As I have taken referral for sde 1 role at Amazon.
@vinayakgandhi5690
@vinayakgandhi5690 2 жыл бұрын
How important are the iterative (stack) versions of these recursive solutions from an interview point of view. Because for most problems, if the recursive approach is easy then figuring out the iterative one is almost medium to hard.
@ssivagangaram
@ssivagangaram Жыл бұрын
Thanks for your videos and efforts🙏
@pranavsharma7479
@pranavsharma7479 2 жыл бұрын
string dfs(TreeNode* root){ if(root == NULL) return ""; if(root->left == NULL and root->right == NULL) return to_string(root->val); string temp = to_string(root->val); string l = "(" + dfs(root->left) + ")"; string r = ""; if(root->right){ r = "(" + dfs(root->right) + ")"; } return temp + l + r; } string tree2str(TreeNode* root) { return dfs(root); }
@bhavya-zm6gg
@bhavya-zm6gg 6 ай бұрын
Hi Sir, I am waiting for your solution to problem #99, 'Recover Binary Search Tree', and an explanation of Morris Traversal if that is the appropriate approach to solve it.
@1vader
@1vader 2 жыл бұрын
Good explanation but imo it's not just the problem description that's bad but the problem details themselves. I see no reason why the first example isn't ambiguous. Why should leaving out the empty paranetheses be ok on the right but not on the left? Just bc reading left-to-right is natural? Makes no sense to me. imo the expected output is ambiguous and can stand for both of the given example trees. At least a very imprecise explanation which is obviously a no-go for stuff like this.
@davidmora5249
@davidmora5249 2 жыл бұрын
Wow, this was just excellent
@PochitaDeBest-0023p
@PochitaDeBest-0023p 2 жыл бұрын
Hey could you upload a video for Gray Code question. ik there are multiple solutions in the net, but i feel like ur explanations reach me better
@kokkiligovinda1943
@kokkiligovinda1943 2 жыл бұрын
Wow, Welcome back.
@starlingroot
@starlingroot 2 жыл бұрын
Thanks for the awesome content
@manjit2990
@manjit2990 2 жыл бұрын
Thank you
@s-sameer
@s-sameer 2 жыл бұрын
Thanks a lot
@shubham900100
@shubham900100 2 жыл бұрын
Super Thanks
@KaushalKumar087
@KaushalKumar087 10 ай бұрын
Which app do you use to draw?
@nydexia4789
@nydexia4789 2 жыл бұрын
How would a binary tree with no left node be represented in array (the input in this case)?
@sondidu
@sondidu 2 жыл бұрын
Hey, what software do you use to draw explanations on your video?
@DenysPanchenko-it3kl
@DenysPanchenko-it3kl 10 ай бұрын
paint
@asrahussain8642
@asrahussain8642 Жыл бұрын
update ur roadmap
@SC2Edu
@SC2Edu 10 ай бұрын
How is this considered an easy problem? ahah
@saitejanagishetty8075
@saitejanagishetty8075 2 жыл бұрын
Thanks!
Maximum Performance of a Team - Leetcode 1383 - Python
14:53
NeetCode
Рет қаралды 31 М.
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 30 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 98 МЛН
CONSTRUCT BINARY TREE FROM STRING | LEETCODE 536 | PYTHON STACK SOLUTION
16:42
Unique Binary Search Trees II - Leetcode 95 - Python
12:51
NeetCodeIO
Рет қаралды 20 М.
Trim a Binary Search Tree - Leetcode 669 - Python
11:53
NeetCode
Рет қаралды 18 М.
Minimum Height Trees - Leetcode 310 - Python
23:30
NeetCodeIO
Рет қаралды 21 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 518 М.
Binary Search - Leetcode 704 - Python
9:40
NeetCode
Рет қаралды 170 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 740 М.
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 18 М.