Is there something wrong with 4Clojure?

138 views
Skip to first unread message

ctzsm

unread,
Sep 29, 2012, 11:35:04 PM9/29/12
to 4clo...@googlegroups.com
Hi,

Now I'm doing the problem 164 (Language of a DFA). (Please click here)

But as you know, this problem is very difficult, a solution can get a stackoverflow or timeout very easy.

After implement a solution, I'm keep getting timeout now.

However, the problem occurs when I want to know how a solution can get a timeout, so I just try a test function as follows:

(fn [m]
  (let [al (m :alphabet)
        s (str (first al))]
  (for [i (range 1000)] s)))

oh my god... this function got a timeout in this problem!

the problem has some very big test cases, if 4Clojure can't make the test function "You failed the unit tests", I don't think one can pass this problem.

And maybe a reasonable number for my test function is not just 1000 but more than 10000.

Can anyone tell me something about it?

Thanks in advance.

Yours.
Reply all
Reply to author
Forward
0 new messages