This is not a clojure related question rather algorithmic one.

And real challenge here is to find 3 different solutions that lay in
different CS-related topics.
I'm pretty sure authors didn't mean three similar variations of a single
solution here.

As pointed above, one way to solve it, and probably the most obvious one,
is breadth first search over solution space.

Second approach is application of number theory.

I also managed to find third solution using backtracking idea from dynamic
programming, but I'm not sure if it is what authors meant.
Anyway there are probably many more approaches to this problem.

Implementing these algorithms in clojure or any other language is a quite
different topic.

On Tue, Jan 26, 2016 at 2:37 PM, <stevegarrid1...@gmail.com> wrote:

> Hi, i am completely new to clojure and i have been given the task of
> finding 3 different ways of solving the problem here:
> https://uva.onlinejudge.org/external/5/571.html
>
> Im hoping that if someone can point me in right direction of a solution
> hopefully ill be able to figure out the other 2 solutions from that
>
> thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to