Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Converting numbers to their English representation is a common programming challenge where the goal is to take a number as input and output it's English equivalent. For example: input 1024; output "One Thousand Twenty-Four".
0
votes
3
answers
201
views
My take at ProjectEuler #17 - counting counting characters
I tried to tackle #17 problem on Project Euler:
If the numbers 1 to 5 are written out in words:
one, two, three, four, five,
then there are \$3 + 3 + 5 + 4 + 4 = 19\$ letters used in total. …
0
votes
My take at ProjectEuler #17 - counting counting characters
I know what was wrong. There was a problem with 10 < i % 100 < 20. For example, "eleven" was interpreted as "tenone". The fixed version of code can be find below. Please let me know what I could do di …