sort and localization

  • Thread starter Giampiero Zanchi
  • Start date
G

Gregory Brown

Hi to all
I'm trying to solve projecteuler problem 022
(http://projecteuler.net/index.php?section=problems&id=22) but with no
success. I suspect it may depend on localization of ruby sort (???). So
my question is: may ruby sort change due to the localization of the
machine it is running on?

Sort is done by ASCII sort order on Ruby 1.8. Not sure on Ruby 1.9,
but my guess is that it does not assume anything about 'alphabetical
order', but uses character codes instead. (Causing the same problem)

-greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,174
Messages
2,570,940
Members
47,486
Latest member
websterztechnologies01

Latest Threads

Top