DEV Community

Heiko Dudzus profile picture

Heiko Dudzus

Mathematician, physicist and computer scientist

Location Cologne Joined Joined on  twitter website

Education

University of Cologne

All 40 comments

Explain Haskell like I'm five

Like Ben Halpern recommended, Learn You A Haskell for Great...

Write a program or script to find Lucky Numbers

Great to hear that. I'm afraid I can't fully claim credit f...

Write a program or script to find Lucky Numbers

Kasey Speakman raised the bar very high very early. :-) M...

Write a program or script to find Lucky Numbers

1.6 on my Laptop. I could speed this one up to 1.2 by count...

Write a program or script to find Lucky Numbers

Fine! This runs in about 19s on my Notebook. splice() works...

Write a program or script to find Lucky Numbers

This problem made me more familiar with Go. Some nice thing...

Write a script to find "Happy Numbers"

I'm glad to see some Haskell here. :) I somehow prefer your...

Write a script to find "Happy Numbers"

And now that I have learned a simpler break condition for t...

Write a script to find "Happy Numbers"

The number 42 is also in that loop, by the way. :)

Write a script to find "Happy Numbers"

Adding a solution in Haskell: -- core function; read fro...

Write a script to identify an anagram

This is good. I adapted it to Haskell, recording letter fre...

Write a script to identify an anagram

I'm sorry, it took me a dinner out to see, this was unneces...

Write a script to identify an anagram

I like the solution to "subtract" all characters of the sho...

Write a script to identify an anagram

This is close to cheating and must have terrible space and ...

Write a script to identify an anagram

I stick with mappings to prime numbers. Haskell, without co...

Write a script to identify an anagram

Hey, thank you very much! I'm glad you sent me a notice. I ...

Challenge - Print Spiral

Instead of functorial lifting into the list (resulting in O...

Challenge - Print Spiral

Six cases, four of them with explicit return values (at the...

Let's use LaTeX!

I second that. Org-mode is great. I rarely use LaTeX, these...

How I (Finally) Built an App in Elm

I agree, just returning a value in a Maybe and then getting...

Challenge - Print Spiral

That's quite common in functional programming, btw. When I ...

Challenge - Print Spiral

This was my O(n) prototype in Haskell. Which helped me to f...

Challenge - Print Spiral

Recursion was the way to go for me, too, because of the rec...

Challenge - Print Spiral

This is generally true. I'm not sure if this approach refle...

Challenge - Print Spiral

Seems like Rust functions return the final statement (for e...

Challenge - Print Spiral

As I can see, you have written all the needed logic for a s...

Challenge - Print Spiral

In my first reflections of the code, I picked numbers in th...

Challenge: find 'Kaprekar numbers'

Some last improvements: Use fixed-width Ints instead of a...

Challenge - Print Spiral

I could contribute a solution that's different to the ones ...

Challenge: find 'Kaprekar numbers'

I have much sympathy for LISP and Clojure but have not that m...

Challenge - Print Spiral

I wanted to allow to build up one single line before printi...

Challenge: find 'Kaprekar numbers'

I really like to see your use of Streams and lambdas solvin...

Challenge: find 'Kaprekar numbers'

Thanks. I enjoyed learning about Kaprekar number as well as...

Challenge: find 'Kaprekar numbers'

I managed to reduce the number of divisions by throwing some ...

Challenge: find 'Kaprekar numbers'

Ok, I see. I've missed it because of the leading zero in th...

Challenge: find 'Kaprekar numbers'

Is anyone interested in finding another 'strange' Kaprekar ...

Challenge: find 'Kaprekar numbers'

I tried to compute the Kaprekar numbers up to 108. A simple...

Challenge: find 'Kaprekar numbers'

I think your OP is really ok. I also didn't expect somethin...

Challenge: find 'Kaprekar numbers'

As far as I can see, most (if not all) programs use the strat...

Challenge: find 'Kaprekar numbers'

Solution in Haskell: I didn't want to take the route to Stri...

loading...