Sven Stähs
18711
18711
Rank3
3
Badges265
265
Score
Sven Stähs submitted Solution 6979874 to Problem 234. Project Euler: Problem 3, Largest prime factor on 27 Nov 2021 |
Sven Stähs submitted Solution 6978559 to Problem 232. Project Euler: Problem 2, Sum of even Fibonacci on 27 Nov 2021 |
Sven Stähs submitted Solution 6978499 to Problem 230. Project Euler: Problem 1, Multiples of 3 and 5 on 27 Nov 2021 |
Sven Stähs received Community Group Solver badge for MATLAB Onramp Practice on 27 Nov 2021 |
Sven Stähs submitted Solution 6978459 to Problem 672. Longest run of consecutive numbers on 27 Nov 2021 |
Sven Stähs submitted a Comment to Problem 672. Longest run of consecutive numbers The problem specifically states that column and row vectors must be supported, but then doesn't have a test for this. I'd suggest changing at least one of the tests to use a column vector.
Or maybe add one test where it is asserted that `longrun(a) == transpose(longrun(transpose(a)))`
on 27 Nov 2021 |
Sven Stähs submitted a Comment to Problem 672. Longest run of consecutive numbers hm, I don't think the assertion in test 4 is intuitively correct. The problem asks for the number(s) that have the longest consecutive repetitions in the input vector. So there can be multiple numbers having the longest runs (of equal size), but if all those numbers are the same, as in [1 1 2 1 1], surely the answer is "1", not "1 and 1".
I can only imagine that's what the implementation turned out to produce and instead of fixing the implementation to fit the problem, the tests was introduced to check for exactly that output ;)
Which is fine, you'll always have clients in real life that say they want something and when you roll it out they meant something different, it just bothers me that my nice solution doesn't work because of this ?
on 27 Nov 2021 |
Sven Stähs submitted Solution 6959354 to Problem 44960. Rescale Scores on 24 Nov 2021 |
Sven Stähs submitted Solution 6959329 to Problem 44950. Calculate Inner Product on 24 Nov 2021 |
Sven Stähs submitted Solution 6959314 to Problem 44950. Calculate Inner Product on 24 Nov 2021 |
Sven Stähs submitted Solution 6959299 to Problem 44952. Find MPG of Lightest Cars on 24 Nov 2021 |
Sven Stähs submitted Solution 6959229 to Problem 44949. Find the Best Hotels on 24 Nov 2021 |
Sven Stähs submitted Solution 6959209 to Problem 44958. Crop an Image on 24 Nov 2021 |
Sven Stähs submitted Solution 6958519 to Problem 44945. Calculate BMI on 24 Nov 2021 |
Sven Stähs submitted Solution 6958509 to Problem 44934. Plot Damped Sinusoid on 24 Nov 2021 |
Sven Stähs submitted Solution 6958489 to Problem 44948. Calculate a Damped Sinusoid on 24 Nov 2021 |
Sven Stähs submitted Solution 6958479 to Problem 44948. Calculate a Damped Sinusoid on 24 Nov 2021 |
Sven Stähs submitted Solution 6958419 to Problem 44946. Solve a System of Linear Equations on 24 Nov 2021 |
Sven Stähs submitted Solution 6958389 to Problem 44951. Verify Law of Large Numbers on 24 Nov 2021 |
Sven Stähs submitted Solution 6958374 to Problem 44951. Verify Law of Large Numbers on 24 Nov 2021 |
Sven Stähs submitted Solution 6953099 to Problem 44947. Find the Oldest Person in a Room on 23 Nov 2021 |
Sven Stähs submitted a Comment to Problem 44943. Calculate Amount of Cake Frosting If you're considering trying to get your solution size down to 10 -- like the leading solution -- don't bother! They wrapped all their code in a regex statement so that the code size cannot be calculated anymore (the algorithm only sees the regex call, not what that regex actually does). ANY code you write like this is going to be of size 10 but is not going to be actually faster than the proper solution. Probably the exact opposite in fact.
on 23 Nov 2021 |
Sven Stähs submitted Solution 6953069 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6953064 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6953049 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6953044 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6953039 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs received Commenter badge for Solution 6842024 on 23 Nov 2021 |
Sven Stähs submitted a Comment to Solution 6842024 surely wrapping all the code into a regular expression, which hides it from the code size calculation algorithm of Cody, is cheating... This way you can get a size of 10 on nearly any problem. Thanks for messing up the solution chart for the rest of us...
on 23 Nov 2021 |
Sven Stähs submitted Solution 6952909 to Problem 44944. Convert from Fahrenheit to Celsius on 23 Nov 2021 |
Sven Stähs submitted Solution 6952829 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952799 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952574 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952554 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952464 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952449 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952414 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952369 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952359 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952344 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952319 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs submitted Solution 6952279 to Problem 44943. Calculate Amount of Cake Frosting on 23 Nov 2021 |
Sven Stähs received Solver badge for Solution 6952169 on 23 Nov 2021 |
Sven Stähs submitted Solution 6952169 to Problem 1. Times 2 - START HERE on 23 Nov 2021 |