B. Substring and Subsequence | Educational Codeforces Round 167 Solution |

  Рет қаралды 626

Ajit Kushwaha

Ajit Kushwaha

Күн бұрын

In this video, i have discussed Codeforces Educational Round 167 contest and explore the solution for the problem “B. Substring and Subsequence ” problem solution. If you aren't able to solve do watch it out .
Feel free to watch the video to enhance your coding skills and gain insights into problem-solving techniques! 🚀👨‍💻
#coding
#codeforces
#codeforcessolutions
#coding
#codeforcessolution
#codechef
#codeforcescontest
#programming #codingtips #competitiveprogramming #algorithm #problem-solving

Пікірлер: 9
@44.ayushkeshri64
@44.ayushkeshri64 2 ай бұрын
Thanks, you saved my hours of solving it.
@user-sn7mx4dk1j
@user-sn7mx4dk1j 2 ай бұрын
Awesome bro, keep up the good work
@ajitkushwaha3101
@ajitkushwaha3101 2 ай бұрын
Thanks , I am superrrrr happy that you liked it . Do subscribe us for upcoming PCD :).
@abhibhagat7767
@abhibhagat7767 2 ай бұрын
this was by far the best explanation with examples.
@ajitkushwaha3101
@ajitkushwaha3101 2 ай бұрын
Thanks :) . its great that you liked it .
@AnkitSharma-zr6gr
@AnkitSharma-zr6gr 23 күн бұрын
hello can you help me please and tell me why my code is not working import java.util.Arrays; import java.util.Scanner; public class SubStringAndSubsequence { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int l = 0; l < n; l++) { String s =sc.next(); String st = sc.next(); int t [][] = new int[s.length()+1][st.length()+1]; for (int i = 1; i < s.length()+1; i++) { for (int j = 1; j < st.length()+1; j++) { if(s.charAt(i-1)==st.charAt(j-1)){ t[i][j]=1+t[i-1][j-1]; }else{ t[i][j]=Math.max(t[i-1][j],t[i][j-1]); } } } for (int [] p:t ) { System.out.println(Arrays.toString(p)); System.out.println(); } System.out.println((s.length()+st.length())-t[s.length()][st.length()]); } } }
@kingkong76749
@kingkong76749 Ай бұрын
same code not working
@ajitkushwaha3101
@ajitkushwaha3101 Ай бұрын
You can comment your code I can tell you where is the error .
@saurabh0065
@saurabh0065 2 ай бұрын
id apki kya hai ?
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 25 МЛН
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 44 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 44 МЛН
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН
B. Substring and Subsequence - Educational Codeforces Round 167
8:09
X AlphA - Hard Algorithms
Рет қаралды 1 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 488 М.
touristream 018: Codeforces Round 769 (Div. 2)
1:57:28
Gennady Korotkevich
Рет қаралды 64 М.
Winning Facebook (Meta) Hacker Cup Qual Round 2022?
53:55
Neal Wu
Рет қаралды 2,4 МЛН
❌ Don't Run Behind 500 LEETCODE Problems ❌ Focus on QPCD
8:31
How I would learn to code (if I could start over)
10:52
PIRATE KING
Рет қаралды 1,3 МЛН
Substring with Concatenation of All Words | Leetcode #30
13:41
Substring and Subsequence Codeforces Solution
8:46
Dustin404
Рет қаралды 116
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 25 МЛН