This video should have a million likes! Super useful examples! Thank you
@mildmanneredthinkingman93233 жыл бұрын
I just wanted to say, TY! The last examples with trees is mighty helpful. I know this is something I'm hearing is coming up in my code school. And this is great you took the time to lay it out. And the grouping trick, WOW. Thank you so much!
@starterdev3 жыл бұрын
Leigh I love your algorithm videos like binary search Please make more, your tutorials are easy to understand, thanks
@leighhalliday3 жыл бұрын
The funny thing is that I've never written a binary search for real in my 17 years programming lol
@chikatikah38383 жыл бұрын
That’s a neat way to do the Fibonacci sequence!
@leighhalliday3 жыл бұрын
Hehe, I didn't invent it unfortunately :D
@igor_cojocaru3 жыл бұрын
Cool, cool, cool! More stuff like that! Algorithms and data structures
@leighhalliday3 жыл бұрын
Thanks Igor!! I'll try to do more algos and data structures... I just gotta learn them first lol
@igor_cojocaru3 жыл бұрын
@@leighhalliday 😁👍
@jamezjaz3 жыл бұрын
Awesome! Thanks for sharing
@jaany3 жыл бұрын
Great video, Leigh! What would the performance and other impacts be with this type of recursion vs using the typical loops or reducer?
@leighhalliday3 жыл бұрын
Hey Jan! I'd always pick simple iteration over recursion whenever possible... more for readability than anything else. Performance? No idea :D
@GustavoDiaz933 жыл бұрын
I think it would be O(n) time and space in some cases, it can be improved in terms of memory/space using tail recursion.
@jorgen54623 жыл бұрын
Cool, Leigh!😁
@leighhalliday3 жыл бұрын
Thanks Jorgen!
@mrkhoros3 жыл бұрын
It is like you know what I am weak at.
@leighhalliday3 жыл бұрын
Haha aren’t we all :) I make these videos for myself!
@erikshumkov48483 жыл бұрын
Sweet :)
@leighhalliday3 жыл бұрын
Thanks Erik!
@MaksymMinenko3 жыл бұрын
Thanks.
@MaksymMinenko3 жыл бұрын
Thanks.
@MaksymMinenko3 жыл бұрын
Thanks.
@MaksymMinenko3 жыл бұрын
:)
@leighhalliday3 жыл бұрын
Haha I see what you did here :)
@MaksymMinenko3 жыл бұрын
@@leighhalliday Yeah, KZbin failed me here. They need to improve the comments in this regard. 😀
@ridl273 жыл бұрын
ez
@leighhalliday3 жыл бұрын
Hehe... maybe you're just smarter than the rest of us :D
@moses.muchemi3 жыл бұрын
You should have avoided using JS-specific methods, but instead, use those which are easily transferable to other languages.