Timeline for Simplify a square root
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 27, 2016 at 12:07 | history | edited | Damien | CC BY-SA 3.0 |
added 42 characters in body
|
Jun 27, 2016 at 12:06 | comment | added | Damien |
Yes, you are right. It wasn't possible with my first solution last[(x,y)|x<-[1..n],y<-[1..n],x*x*y==n] but now it will work. Thanks. Do you have your own solution in Haskell?
|
|
Jun 27, 2016 at 11:02 | comment | added | xnor |
Nice solution, I like how it doesn't use mod or div . I think you can do y<-[1..] due to laziness.
|
|
Jun 27, 2016 at 10:47 | history | answered | Damien | CC BY-SA 3.0 |