1 / 2
Nov 2019

Hello everyone!
Been trying this easy sum for quite some time. I get the output correct when I pass the testcase, but for reason unknown, i get wrong answer. any help is highly appreciated.
heres my code:

link for problem statement:

  • created

    Nov '19
  • last reply

    Nov '19
  • 1

    reply

  • 596

    views

  • 2

    users

  • 2

    links

Try this:

2
AAAAAAAAAA
GGGGGGGGGG
3
CROSS 1 2 5 5
COUNT 3 1 10
COUNT 4 1 10

What would you expect DNAs 3 and 4 to be? Check this with what the code sets them to.

And you might want to report the exceptions you catch so you can see what’s going wrong.