Page 1 of 1

Counting Challenge

Posted: Wed Oct 01, 2008 8:24 pm
by 0mega24
I tried using a two lettered Linux application to count the characters in the paragraph but the answer i get 593 is somehow incorrect. Is there some mistake that I could be making that would produce an incorrect output for that application? Plz pardon the noobishness of this question.

Re: Counting Challenge

Posted: Wed Oct 01, 2008 9:28 pm
by canine
0mega24 wrote:I tried using a two lettered Linux application to count the characters in the paragraph but the answer i get 593 is somehow incorrect. Is there some mistake that I could be making that would produce an incorrect output for that application? Plz pardon the noobishness of this question.
You're probably getting the space at the end of the paragraph, which probably is not what was intended.

Posted: Fri Sep 11, 2009 9:34 am
by Minor
I think that's a stupid chalenge
I used this javascript code to count characters

Code: Select all

var q = document.getElementsByTagName('p');
q[1].innerHTML.length
And got 595
but as I understand from previous posts the right answer is 592. Why?

Posted: Fri Sep 11, 2009 9:57 am
by megabreit
Please don't discuss solutions in the "challenges" forum, not even for challenges as easy as this one!
This is why there is a "challenges solved" forum!