Here's a BF solution
~. (#~(-:|.)&>) 'abccdadba'<@:#"1~ }. #: i.2^9
On 10-01-13 18:53, Roger Hui wrote:
http://code.activestate.com/recipes/577010-palindrome-count/ says:
'abccdadba' contains 50 palindromes, not all unique. Examples are: 'a' at
positions 0,-4, and -1. 'aa' at (0,4),(5,-1), and (5,-1) The longest is
'abdadba' This code counts the palindromes in the data variable.
Since the string has 9 the number of substrings is only 45 (+/\1+i.9).
Therefore, I don't understand what the description means by "palindrome"
or "in the data variable".
On Thu, Jan 10, 2013 at 9:38 AM, David Ward Lambert
<b49p23t...@stny.rr.com>wrote:
The Kurukshetra contest is fun and soon. The university sponsors
several contests, this one fits me best.
http://kurukshetra.org.in/#!/events/athena
Of course the winners finish just about all the problems before I even
start, but they did ask me to publish one of my solutions. It's in
python, my j skills were insufficient then:
http://code.activestate.com/recipes/577010-palindrome-count/
Athena!
We are back again with Athena – the ultimate math-coding contest of
Kurukshetra'13 which tests your prowess at solving mathematical problems
using your coding skills. Are you a programmer who is fine with math
conceptually, but just don't like doing calculations by hand? But are
you skilled to tell a computer what the math problem is and make it do
the calculations for you? The event will be a spectacle with amateurs
locking horns with geniuses and getting all those guns blazing to make
one final stand against a looming cloud of impossibility! Gear up for
this ultimate battle of your computational and programming skills.
Event Starts on 26th January 2013.
Check out for more details about this event at Athena
Date: Wed, 9 Jan 2013 13:22:50 +0000
From: Y-01 <darling.ki...@gmail.com>
Message-ID:
<CADHLgnnw2bMB5dQTQunPz2mA7v-wV5uuVdRtb
+oauy=s8hz...@mail.gmail.com>
Who knows another sites where you can learn J in practice of solving
problems? Mb serious problems, mb parts of work in J. Anything but in
J.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
Met vriendelijke groet,
@@i = Arie Groeneveld
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm