Tutorial

Revision en2, by Sauravs_19, 2024-10-15 12:10:08

[contest:2025][problem:2025A] One approach to two screen is compare both string from starting of element. Iff match is there continue comparing and count no of characters matched as soon as the character differs even at the first index stop comparing Total time would be= count+1+(length of first String-count)+(length of second string -count)

Tags string match, iterative, string

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Sauravs_19 2024-10-15 12:10:08 0 (published)
en1 English Sauravs_19 2024-10-15 12:09:14 355 Initial revision (saved to drafts)