Ad
  • Default User Avatar

    I changed the description and added some test cases.

    Please go through nd i hope you'll be satisfied.

    Thnkx for your suggestion and response. I truely appreciate it.

  • Default User Avatar

    I changed the description, trying to solve all the confusions and discrepancy and have wrote all this with some eye candy and have added some test cases also.
    I hope this will help while solving for others.
    Please see for any mistake (human here ;) ).

    And thnkx a ton for such a gud response and suggestion.

  • Default User Avatar

    A few issues:

    • I still found the description a little confusing, I was squaring both odd and even, and also didn't realise that we wanted the even position rather than actual number. I'm partly to blame but I feel it could have been worded a little better.
    • There are no tests, you have to just hit submit.
    • On hitting submit and failing, it doesn't tell you what was being passed to it, it just says 'expected x, got x' which makes it hard to diagnose the problem.
      The issues are a shame because I found this to be quite interesting to do, great apart from those issues.