alan_navarro's blog

By alan_navarro, 10 years ago, In English

Hello Community. I have a question to all Java programmers. Given 10 000 000 random strings with the form "X-NN-XX" where X represents a english capital letter and N a number, count the number of differents strings and print this number.

I wrote a code which override the hashCode of a class Key, where returns the attribute (which is a representation of the string in 36-base) but the program never ends. I suppose my way to generate the 36-base int is not good.

Anyone can help me?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it