this post was submitted on 05 Dec 2024
3 points (100.0% liked)

Haskell

467 readers
6 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 2 weeks ago (1 children)

When you're given an array of characters, and your first step is "I'm going to store that in a map of (int , int) -> char" I think you need to question your methods.

[โ€“] Noughtmare 2 points 2 weeks ago

Why? They immediately explain that the difference in performance would not be significant on such a small problem and I see no other reason to prefer arrays over maps.