Wow, what a nice explanation and simple code! Thanks for the video!!
@xylo57502 жыл бұрын
In case anyone is wondering, you can literally just do this instead of itertools.combinations: for i in range(n): for j in range(i, n): ...
@tallerdenyooh Жыл бұрын
Just some honest constructive criticism (hope you don't get offended). Not explaining how to implement the combinations or the logic behind that and just going with python's library isn't going to fly in interviews. Unless you're only trying to target experienced/advanced developers, implementing the logic of itertools.combinations doesn't feel that straight forward when they're seeing this problem for the first time. Other than that, you're well spoken which makes your explanation easy to follow and understand
@symbol7672 жыл бұрын
Thank you for going over this problem, I got this on a Microsoft OA recently and was lost on this problem.....
@crackfaang2 жыл бұрын
Hope it's not too late to answer it haha
@symbol7672 жыл бұрын
@@crackfaang I still managed to pass the OA somehow lol
@rsKayiira2 жыл бұрын
Amazing video. Honestly unbelievable content.
@crackfaang2 жыл бұрын
Thank you for the kind words. Glad you are getting value from the content
@ramizrizwan3057 Жыл бұрын
such a great explanation!
@tabmax222 жыл бұрын
what if the graph is disconnected?
@m36334442 жыл бұрын
Can you please use C++ or Java, not python please?
@crackfaang2 жыл бұрын
No unfortunately not. Python is my primary language and I have 0 experience with C++ or Java.