
9 Aug
2007
9 Aug
'07
12:25 p.m.
j.vimal:
Hi I am practicing writing code in haskell, by solving problems at this site. http://spoj.pl. The problem http://spoj.pl/problems/FASHION , is pretty simple.
1. Given two lists A,B , of N numbers, sort them and take sum of products. i.e. Sum ai * bi
I wrote a code, but seems to give "Time limit exceeded"!
We have a page for these SPOJ problems: http://haskell.org/haskellwiki/SPOJ#Techniques_for_dealing_with_problems_eff... With bytestring IO, you can aim to be around the speed of OCaml or C++, according to the existing bytestring entries. -- Don