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

×

Problem Sheokand and String

Help me out with the test case for which the below mentioned code fails

https://www.codechef.com/viewsolution/18830461

This problem is from JUNE 18 Division 2 Sheokand and String

asked 11 Jun, 17:55

sreekar1999's gravatar image

2★sreekar1999
11
accept rate: 0%


Here is the test case you want

2
bcd
abc
2
2 cde
2 xyz

link

answered 11 Jun, 19:15

l_returns's gravatar image

5★l_returns
1.1k18
accept rate: 27%

moreover I think problem is that "max_equality_no " can be zero also

here outputs will be

abc

abc

because if nothing matches then you need to output lexo. smallest string..

(11 Jun, 19:17) l_returns5★

HERE is your accepted solution :)

(11 Jun, 19:21) l_returns5★
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:

×179
×15

question asked: 11 Jun, 17:55

question was seen: 121 times

last updated: 11 Jun, 19:21