Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java&Sepples Challenge

Name: Anonymous 2008-08-02 15:56

Okay, here is the challenge.
The first one after me creates a very easy problem. The first person to post a working solution to that problem with either Java or C++ posts another problem but this time slightly more difficult then the previous and so on.

Name: Anonymous 2008-08-02 17:01

import Data.List (delete)

combinations [] = [[]]
combinations (x:xs) = map (x:) xs' ++ xs'
  where xs' = combinations xs

subsetsum n = any ((== n) . sum) . delete [] . combinations

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List