You are not logged in. Please login at www.codechef.com to post your questions!

×

Test case for STRMRG Jan 18 Long

link to question : https://www.codechef.com/problems/STRMRG

Link to my sol : https://ideone.com/5Eu0Mv

Need test case where my code fails?

Approach:

For each element of str2,finding first element in str1 which is equal to element of str2 and inserting it there(say at position 'p') then for next element of str2 finding first element in str1 starting from p. Similary doing it for str1.

Then finding min from two cases.

asked 18 Jan '18, 21:51

chunky_2808's gravatar image

3★chunky_2808
1649
accept rate: 4%


Here you go

1
20 20
bacbadbcabdbbdadccaa
ccdbccbdddbcbaaaccdb
Correct Answer: 21 Your Answer: 22

link

answered 18 Jan '18, 22:41

stranger7's gravatar image

5★stranger7
1464
accept rate: 27%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×643
×18
×4

question asked: 18 Jan '18, 21:51

question was seen: 273 times

last updated: 18 Jan '18, 22:41