Substring and Subsequence Codeforces Solution

  Рет қаралды 117

Dustin404

Dustin404

Күн бұрын

Пікірлер: 5
@nikhilkatoch577
@nikhilkatoch577 2 ай бұрын
What I did was I used the lcs to give me the length of longest common subsequence. Then answer was |a| + |b| - lcsLength It's not getting passed. What am I doing wrong? Any test case for this.
@dustin4047
@dustin4047 2 ай бұрын
@@nikhilkatoch577 can u share me your code
@dustin4047
@dustin4047 2 ай бұрын
@@nikhilkatoch577 what will be your answer for abcd bed I think it would be 4+3-2=5 but if we think the answer would be beabcd or abcded this will give length 6... answer is 6
@nikhilkatoch577
@nikhilkatoch577 2 ай бұрын
@@dustin4047 yup I guess... But is 5 gnna be the correct answer....
@nikhilkatoch577
@nikhilkatoch577 2 ай бұрын
@@dustin4047 sure.... Give me some time
Basil's Garden Codeforces Solution
9:52
Dustin404
Рет қаралды 215
Collatz Conjecture Codeforces Solution || Div2
8:39
Dustin404
Рет қаралды 511
Bike vs Super Bike Fast Challenge
00:30
Russo
Рет қаралды 23 МЛН
МАИНКРАФТ В РЕАЛЬНОЙ ЖИЗНИ!🌍
00:31
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 34 МЛН
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
At the end of the video, deadpool did this #harleyquinn #deadpool3 #wolverin #shorts
00:15
Anastasyia Prichinina. Actress. Cosplayer.
Рет қаралды 19 МЛН
Is it a cat? Codeforces Solution || Div 3
4:27
Dustin404
Рет қаралды 839
Leetcode Contest Biweekly 138 Explanation
10:33
ak tiwari
Рет қаралды 128
Three Sum | Two pointer and Hashing Approach | Java
27:00
Malle Madhusudhakar
Рет қаралды 30
Bike vs Super Bike Fast Challenge
00:30
Russo
Рет қаралды 23 МЛН