×

# Solution failing for larger String value

 0 Your solution is not working for Subtask #1, as task 3 of subtask 1 is failing. Then, why are you asking about the solution that would work for string greater than 10^3. Your logic may be incorrect. At First, try to pass the subtask 1 completely. answered 09 Jul '17, 09:29 329●2●10 accept rate: 21%
 0 Please do not create multiple threads on same thing, you can get reported which will make you unable to ask Q until you earn some karma. I just don't understand why case 3 of subtask 1 is failing? It means your logic is incorrect or your program isnt printing correct output or is printing in incorrect format. or c program the max limit is 4095 characters. You are applying a correct concept at wrong place. Refer here- https://stackoverflow.com/questions/11488616/why-is-max-length-of-c-string-literal-different-from-max-char In C you can declare char arrays more than 10^6 and store strings in them. answered 09 Jul '17, 14:24 15.5k●1●20●66 accept rate: 18% Sorry about multiple threads.It was created by mistake because of slow internet connection. Thanks anyways. (10 Jul '17, 05:12)
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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:

×1,491
×1,314
×49
×41
×26

question asked: 09 Jul '17, 07:47

question was seen: 373 times

last updated: 10 Jul '17, 05:12