re: Daily Coding Puzzles - Nov 4th - Nov 9th VIEW POST

re: F# let lastWord s = let update (first, word) letter = if letter >= first then (letter, string letter + word) else ...

Awesome -- this one (for me) was a lot easier than they made it sound!

Same here. The hard part was understanding the problem. (It felt very much like "A train leaving SF at 50kph ..." word problems.) But after that the code wasn't so bad.

I think the possible "gotcha" here is that they do not want a reverse alphabetically sorted string, which, if you're not careful about the requirements, could be what you try to build and have it trip you up.

code of conduct - report abuse