Some error occured while loading page for you. Please try again.
Sort 14 Discussions, By:
Please Login in order to post a comment
I don't feel like this deserves to be in medium.
A minimal complete solution in Haskell is rather trivial
main = getLine >> getLine >>= print. foldr1 lcm. map read. words
will run without any problem using int's (on a 64bit system anyhow)
rather easy in Haskell where everything is in prelude (foldl1' lcm)
Technically, foldl1' is in Data.List. Otherwise, I agree.
With F# ensure using int64 and printing out in int to pass all the testcases.
Please, why will answer to case 10 be multiple of 10; when none of the numbers in the array is multiple of 5! Meanwhile, I am only missing case 10.
Did anyone else look up algorithms in Wikipedia only to find that lcm is a native Haskell function?
why can't i use c++ or python ?
It's Functional Programming
Why hackerrank hates recursion so much?
One recursion call in F# and it blows...
oh man the BigInt is the key thing...