In test #7, I think the last digit of the mean(s) is maybe supposed to be a 3 rather than a 5. I'm also having some problems with test #3, but I haven't investigated that yet.
I can't see where our difference in test#7 is coming from, because even if I use: mean = int64(sum/numel), I'm still getting 7620740342849265. Could it be because of overflow, again? I tried not to exceed 'flintmax' this time, though. Can you publish your solution, please? Thanks.
Regarding test#3, I've checked my solution using the formula: omega(x) = numel(unique(factor(x))), and it seems correct.
Interesting. My solution fails test #7 on my laptop, but passes on the Cody server. The problem with test #3 was my fault!
So many choices
Great Circle Distance
Replicate elements in vectors
Replace all zeros and NaNs in a matrix with the string 'error'
Guess the Coefficients!
Easy Sequences 17: Mu Variant Function
Easy Sequences 31: N-N's Sequence
Easy Sequences 16: Volume of Embedded Octahedron
Easy Sequences 40: Quadratic Congruence
Easy Sequences 63: Base-63 Arithmetic Functions
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office