News for hackers. Stuff that matters.
Re:Luhn Algorithm for validating credit cards by InclinedPlane on Friday July 03, 2015 @02:46AM (#9823921)
Really? It seems like a trivial programming exercise to me.
Re:Luhn Algorithm for validating credit cards by cbd1984 on Friday July 03, 2015 @05:30AM (#9824478)
It's trivial if you are told what the algorithm is. If you're expected to randomly remember it perfectly and implement it that way, it's hard.
Re:Luhn Algorithm for validating credit cards by InclinedPlane on Friday July 03, 2015 @07:12PM (#9828407)
Certainly. That's a very poor interview process.
Re:Luhn Algorithm for validating credit cards by jarcane on Friday July 03, 2015 @03:38AM (#9824097)
I've actually done it myself for fun in Haskell; it's one of the CodeWars challenges.