Комментарии:
Thanks for the vid! I was looking for an explanation on sliding windows more than the actual question and this was perfect. Also had a thought, could it be worth returning max if s.length() - left <= maxlength after the left++ if you're haven't got enough elements to update max?
ОтветитьThanks. Very understandable and a good code.
ОтветитьThanks, that was a great and crystal clear explanation
Ответить@Daniel Su There is one more optimized solution explained in leet code. It would have been nice if you had added that.
ОтветитьThank you so much, it is really best explanation for the problem.
ОтветитьGood explanation.
Ответитьcan you share your Python code for this?
ОтветитьThank you!
ОтветитьThanks for the explanation, but I'm having a hard time grasping why the Time Complexity would be O(1). If we know the possible values ahead of time then its constant space complexity? This is because of 26 != the input N?
Ответитьfor the naive solution complexity, you are not checking n with every other letter but only checking forward to the end of string, so shouldnt the complexity be n!*n ?
Ответитьlove you bro!
Ответить10/10, the illustrations really helped
Ответитьgreat video. please make more videos like this. Just go through as many common lc questions as you can.
Ответитьthis makes more sense than just looking at a final solution. thanks for making.
Ответитьgood shit
ОтветитьWhy is the time complexity O(26n) in the second approach?
ОтветитьGood explanation ...... but why does every one does this in Java 😅😇
ОтветитьWonderfully explained Daniel. Keep it going! Thank you.
Ответитьplease do more ur so good
ОтветитьVery helpful tutorial. Plz keep making it.
ОтветитьVery nice explanation of the algorithm. Thanks.
Ответить12.39 any substring without repeating characters will not be longer than pw . can u pls explain why
ОтветитьVery clear! Thank you!
ОтветитьPlease upload more interview questions videos
ОтветитьHey hey great
Ответить