hyperrealgopher
hyperrealgopher on Hacker News
Re:Most candidates cannot solve this interview problem
on Sunday February 07, 2021 @03:15AM (#26053510)
Great solution that avoids using any functions that do the heavy lifting for you! Thanks for showing!
Re:Most candidates cannot solve this interview problem
on Sunday February 07, 2021 @03:15AM (#26053506)
Ha, what a coincidence! Right before you posted this I just remembered (&&&) exists: https://gist.github.com/hyperrealgopher/19730725804ba8825d50...
Thanks for sharing!
Re:Most candidates cannot solve this interview problem
on Sunday February 07, 2021 @02:29AM (#26053343)
Hello, Hacker News! I'm new to the community. I just saw this and thought it'd be fun to solve in Haskell. The first solution I thought of was done in under a couple minutes. The second solution (I wanted to implement `group` myself) took a lot longer because I messed up a pattern match!
https://gist.github.com/hyperrealgopher/19730725804ba8825d50...