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


Wrong answer chef and glove Here is the link of my solution. Please tell me my mistake, where i did it wrong?

asked 12 Jun '18, 07:30

rollingautobot's gravatar image

accept rate: 0%

edited 12 Jun '18, 08:49

Your solution does not give newlines between test cases. Also, it doesn't even give the correct answer for the sample test case. You should try walking through the code for each test case, and see where you go wrong.

Also, why use recursion for this input and comparison of arrays? Recursion is usually use when you have 2 or more paths and you need to choose the optimal one between them.

I made some changes to your code (marked //here) and got it accepted.


answered 12 Jun '18, 09:56

sharatsachin's gravatar image

accept rate: 0%

edited 12 Jun '18, 10:08

toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 12 Jun '18, 07:30

question was seen: 102 times

last updated: 12 Jun '18, 10:08