Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
Amazing explaination!! But this is a O(nlogn) solution, is a O(n) solution possible ?
fatser than 100.0% looks so amazing :p
ive never seen that in my life
sad@@popemuhammed5749
clear explanation, thanks dude
Sir why it is r-l+1 will be the no.of ways for that particular i iteration.. please explain
l and r are the two boundaries that we can split between 2nd and 3rd, which means any split between l and r are a valid split, so in total, r-l+1
@@happycoding1093 Thanks sir 💯❤️
Sir done using backtracking but TLE,can we do it in top down sir
given the constraints 10^5, I would say no backtracking
N 2 solution is bruteforce
Amazing explaination!!
But this is a O(nlogn) solution, is a O(n) solution possible ?
fatser than 100.0% looks so amazing :p
ive never seen that in my life
sad@@popemuhammed5749
clear explanation, thanks dude
Sir why it is r-l+1 will be the no.of ways for that particular i iteration.. please explain
l and r are the two boundaries that we can split between 2nd and 3rd, which means any split between l and r are a valid split, so in total, r-l+1
@@happycoding1093 Thanks sir 💯❤️
Sir done using backtracking but TLE,can we do it in top down sir
given the constraints 10^5, I would say no backtracking
N 2 solution is bruteforce